<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SMTC Modem API: smtc_modem_api.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SMTC Modem API
   </div>
   <div id="projectbrief">Generic Modem API description</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">smtc_modem_api.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Generic Modem API description.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;stdint.h&gt;</code><br />
<code>#include &lt;stdbool.h&gt;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for smtc_modem_api.h:</div>
<div class="dyncontent">
<div class="center"><img src="smtc__modem__api_8h__incl.png" border="0" usemap="#asmtc__modem__api_8h" alt=""/></div>
<map name="asmtc__modem__api_8h" id="asmtc__modem__api_8h">
<area shape="rect" title="Generic Modem API description." alt="" coords="16,5,167,32"/>
<area shape="rect" title=" " alt="" coords="5,80,76,107"/>
<area shape="rect" title=" " alt="" coords="101,80,183,107"/>
</map>
</div>
</div><div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><img src="smtc__modem__api_8h__dep__incl.png" border="0" usemap="#asmtc__modem__api_8hdep" alt=""/></div>
<map name="asmtc__modem__api_8hdep" id="asmtc__modem__api_8hdep">
<area shape="rect" title="Generic Modem API description." alt="" coords="246,5,397,32"/>
<area shape="rect" href="smtc__basic__modem__lr1110__api__extension_8h.html" title="Modem API extension for Basic Modem with lr1110 radio." alt="" coords="5,80,205,121"/>
<area shape="rect" href="smtc__modem__test__api_8h.html" title="soft modem test API description" alt="" coords="230,87,413,114"/>
<area shape="rect" href="smtc__modem__utilities_8h.html" title="modem utilities" alt="" coords="437,87,616,114"/>
</map>
</div>
</div>
<p><a href="smtc__modem__api_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structsmtc__modem__version__s.html">smtc_modem_version_s</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Version structure definition.  <a href="structsmtc__modem__version__s.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ad5683363bec8bb86c2993e18909fe50d"><td class="memItemLeft" align="right" valign="top"><a id="ad5683363bec8bb86c2993e18909fe50d"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#ad5683363bec8bb86c2993e18909fe50d">SMTC_MODEM_EUI_LENGTH</a>&#160;&#160;&#160;8</td></tr>
<tr class="memdesc:ad5683363bec8bb86c2993e18909fe50d"><td class="mdescLeft">&#160;</td><td class="mdescRight">EUI (joinEUI, devEUI, etc.) length in byte. <br /></td></tr>
<tr class="separator:ad5683363bec8bb86c2993e18909fe50d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4df00f7e2fcaee5040cd828bf3c03a6c"><td class="memItemLeft" align="right" valign="top"><a id="a4df00f7e2fcaee5040cd828bf3c03a6c"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a4df00f7e2fcaee5040cd828bf3c03a6c">SMTC_MODEM_KEY_LENGTH</a>&#160;&#160;&#160;16</td></tr>
<tr class="memdesc:a4df00f7e2fcaee5040cd828bf3c03a6c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Cryptographic key length in byte. <br /></td></tr>
<tr class="separator:a4df00f7e2fcaee5040cd828bf3c03a6c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6713a6e29cdd3a2abdf94e8b8cc8ef06"><td class="memItemLeft" align="right" valign="top"><a id="a6713a6e29cdd3a2abdf94e8b8cc8ef06"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a6713a6e29cdd3a2abdf94e8b8cc8ef06">SMTC_MODEM_DM_USER_DATA_LENGTH</a>&#160;&#160;&#160;8</td></tr>
<tr class="memdesc:a6713a6e29cdd3a2abdf94e8b8cc8ef06"><td class="mdescLeft">&#160;</td><td class="mdescRight">Application-defined user data length in byte. <br /></td></tr>
<tr class="separator:a6713a6e29cdd3a2abdf94e8b8cc8ef06"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad9e1603f5b656f766fb6d914cafdbb54"><td class="memItemLeft" align="right" valign="top"><a id="ad9e1603f5b656f766fb6d914cafdbb54"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#ad9e1603f5b656f766fb6d914cafdbb54">SMTC_MODEM_CUSTOM_ADR_DATA_LENGTH</a>&#160;&#160;&#160;16</td></tr>
<tr class="memdesc:ad9e1603f5b656f766fb6d914cafdbb54"><td class="mdescLeft">&#160;</td><td class="mdescRight">ADR custom configuration length in byte. <br /></td></tr>
<tr class="separator:ad9e1603f5b656f766fb6d914cafdbb54"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1681310da768c346d46ae2104805a98d"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SMTC__MODEM__EVENT__DEF.html#ga1681310da768c346d46ae2104805a98d">SMTC_MODEM_EVENT_RESET</a>&#160;&#160;&#160;0x00</td></tr>
<tr class="memdesc:ga1681310da768c346d46ae2104805a98d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Modem has been reset. <br /></td></tr>
<tr class="separator:ga1681310da768c346d46ae2104805a98d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga49257a4e251f98e9541e741fc612191b"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SMTC__MODEM__EVENT__DEF.html#ga49257a4e251f98e9541e741fc612191b">SMTC_MODEM_EVENT_ALARM</a>&#160;&#160;&#160;0x01</td></tr>
<tr class="memdesc:ga49257a4e251f98e9541e741fc612191b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Alarm timer expired. <br /></td></tr>
<tr class="separator:ga49257a4e251f98e9541e741fc612191b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga849128c157d6793a3c256a2436a9b22c"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SMTC__MODEM__EVENT__DEF.html#ga849128c157d6793a3c256a2436a9b22c">SMTC_MODEM_EVENT_JOINED</a>&#160;&#160;&#160;0x02</td></tr>
<tr class="memdesc:ga849128c157d6793a3c256a2436a9b22c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Network successfully joined. <br /></td></tr>
<tr class="separator:ga849128c157d6793a3c256a2436a9b22c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab1c64598270d2f217b7f1d5e54ce6885"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SMTC__MODEM__EVENT__DEF.html#gab1c64598270d2f217b7f1d5e54ce6885">SMTC_MODEM_EVENT_TXDONE</a>&#160;&#160;&#160;0x03</td></tr>
<tr class="memdesc:gab1c64598270d2f217b7f1d5e54ce6885"><td class="mdescLeft">&#160;</td><td class="mdescRight">Frame transmitted. <br /></td></tr>
<tr class="separator:gab1c64598270d2f217b7f1d5e54ce6885"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga477de3f4721d288163e32c8ed4409def"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SMTC__MODEM__EVENT__DEF.html#ga477de3f4721d288163e32c8ed4409def">SMTC_MODEM_EVENT_DOWNDATA</a>&#160;&#160;&#160;0x04</td></tr>
<tr class="memdesc:ga477de3f4721d288163e32c8ed4409def"><td class="mdescLeft">&#160;</td><td class="mdescRight">Downlink data received. <br /></td></tr>
<tr class="separator:ga477de3f4721d288163e32c8ed4409def"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gacb8121494c5f09c3ca4bf6f52a4f09b7"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SMTC__MODEM__EVENT__DEF.html#gacb8121494c5f09c3ca4bf6f52a4f09b7">SMTC_MODEM_EVENT_FILEDONE</a>&#160;&#160;&#160;0x05</td></tr>
<tr class="memdesc:gacb8121494c5f09c3ca4bf6f52a4f09b7"><td class="mdescLeft">&#160;</td><td class="mdescRight">File upload completed. <br /></td></tr>
<tr class="separator:gacb8121494c5f09c3ca4bf6f52a4f09b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7af3a19d637d90b4bf916adaa54eff4e"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SMTC__MODEM__EVENT__DEF.html#ga7af3a19d637d90b4bf916adaa54eff4e">SMTC_MODEM_EVENT_SETCONF</a>&#160;&#160;&#160;0x06</td></tr>
<tr class="memdesc:ga7af3a19d637d90b4bf916adaa54eff4e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configuration has been changed by the Device Management. <br /></td></tr>
<tr class="separator:ga7af3a19d637d90b4bf916adaa54eff4e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1616c6532e60371392e30d4e7e61758f"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SMTC__MODEM__EVENT__DEF.html#ga1616c6532e60371392e30d4e7e61758f">SMTC_MODEM_EVENT_MUTE</a>&#160;&#160;&#160;0x07</td></tr>
<tr class="memdesc:ga1616c6532e60371392e30d4e7e61758f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Modem has been muted or un-muted by the Device Management. <br /></td></tr>
<tr class="separator:ga1616c6532e60371392e30d4e7e61758f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7e4c78e5c929d50e51e86d4a7febbe17"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SMTC__MODEM__EVENT__DEF.html#ga7e4c78e5c929d50e51e86d4a7febbe17">SMTC_MODEM_EVENT_STREAMDONE</a>&#160;&#160;&#160;0x08</td></tr>
<tr class="memdesc:ga7e4c78e5c929d50e51e86d4a7febbe17"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stream upload completed (stream data buffer depleted) <br /></td></tr>
<tr class="separator:ga7e4c78e5c929d50e51e86d4a7febbe17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf6528d555f99a654260aec718991f5ce"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SMTC__MODEM__EVENT__DEF.html#gaf6528d555f99a654260aec718991f5ce">SMTC_MODEM_EVENT_LINKSTATUS</a>&#160;&#160;&#160;0x09</td></tr>
<tr class="memdesc:gaf6528d555f99a654260aec718991f5ce"><td class="mdescLeft">&#160;</td><td class="mdescRight">Network connectivity status changed. <br /></td></tr>
<tr class="separator:gaf6528d555f99a654260aec718991f5ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga994a0593bb70bbdf7d556d34401528c2"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SMTC__MODEM__EVENT__DEF.html#ga994a0593bb70bbdf7d556d34401528c2">SMTC_MODEM_EVENT_JOINFAIL</a>&#160;&#160;&#160;0x0A</td></tr>
<tr class="memdesc:ga994a0593bb70bbdf7d556d34401528c2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Attempt to join network failed. <br /></td></tr>
<tr class="separator:ga994a0593bb70bbdf7d556d34401528c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga96bb55bd72c8afa8075e47a7ab12f2d4"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SMTC__MODEM__EVENT__DEF.html#ga96bb55bd72c8afa8075e47a7ab12f2d4">SMTC_MODEM_EVENT_WIFI</a>&#160;&#160;&#160;0x0B</td></tr>
<tr class="memdesc:ga96bb55bd72c8afa8075e47a7ab12f2d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wi-Fi scan done. <br /></td></tr>
<tr class="separator:ga96bb55bd72c8afa8075e47a7ab12f2d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2bedcaf2812519a7a7824e3e7291a0a7"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SMTC__MODEM__EVENT__DEF.html#ga2bedcaf2812519a7a7824e3e7291a0a7">SMTC_MODEM_EVENT_GNSS</a>&#160;&#160;&#160;0x0C</td></tr>
<tr class="memdesc:ga2bedcaf2812519a7a7824e3e7291a0a7"><td class="mdescLeft">&#160;</td><td class="mdescRight">GNSS scan done. <br /></td></tr>
<tr class="separator:ga2bedcaf2812519a7a7824e3e7291a0a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6ed76fc85e0beb904975d2f8852c01bf"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SMTC__MODEM__EVENT__DEF.html#ga6ed76fc85e0beb904975d2f8852c01bf">SMTC_MODEM_EVENT_TIME_UPDATED</a>&#160;&#160;&#160;0x0D</td></tr>
<tr class="memdesc:ga6ed76fc85e0beb904975d2f8852c01bf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Time has been updated by Alcsync. <br /></td></tr>
<tr class="separator:ga6ed76fc85e0beb904975d2f8852c01bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadb3745961f8e511f8f802ed5757b119d"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SMTC__MODEM__EVENT__DEF.html#gadb3745961f8e511f8f802ed5757b119d">SMTC_MODEM_EVENT_TIMEOUT_ADR_CHANGED</a>&#160;&#160;&#160;0x0E</td></tr>
<tr class="memdesc:gadb3745961f8e511f8f802ed5757b119d"><td class="mdescLeft">&#160;</td><td class="mdescRight">ADR profile was switched to network controlled. <br /></td></tr>
<tr class="separator:gadb3745961f8e511f8f802ed5757b119d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa848c33605512940619ddd6bddaddc1e"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SMTC__MODEM__EVENT__DEF.html#gaa848c33605512940619ddd6bddaddc1e">SMTC_MODEM_EVENT_NEW_LINK_ADR</a>&#160;&#160;&#160;0x0F</td></tr>
<tr class="memdesc:gaa848c33605512940619ddd6bddaddc1e"><td class="mdescLeft">&#160;</td><td class="mdescRight">New link ADR requested by network. <br /></td></tr>
<tr class="separator:gaa848c33605512940619ddd6bddaddc1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga965cba0c23d4bdb9c6071f0fa84094a9"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SMTC__MODEM__EVENT__DEF.html#ga965cba0c23d4bdb9c6071f0fa84094a9">SMTC_MODEM_NO_EVENT</a>&#160;&#160;&#160;0xFF</td></tr>
<tr class="memdesc:ga965cba0c23d4bdb9c6071f0fa84094a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">No event available. <br /></td></tr>
<tr class="separator:ga965cba0c23d4bdb9c6071f0fa84094a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5945365aef94fd552bf92d9f17b73cfe"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SMTC__MODEM__DM__INFO__DEF.html#ga5945365aef94fd552bf92d9f17b73cfe">SMTC_MODEM_DM_FIELD_STATUS</a>&#160;&#160;&#160;0x00</td></tr>
<tr class="memdesc:ga5945365aef94fd552bf92d9f17b73cfe"><td class="mdescLeft">&#160;</td><td class="mdescRight">modem status <br /></td></tr>
<tr class="separator:ga5945365aef94fd552bf92d9f17b73cfe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6557151c4f6757ed72c67559237ee07b"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SMTC__MODEM__DM__INFO__DEF.html#ga6557151c4f6757ed72c67559237ee07b">SMTC_MODEM_DM_FIELD_CHARGE</a>&#160;&#160;&#160;0x01</td></tr>
<tr class="memdesc:ga6557151c4f6757ed72c67559237ee07b"><td class="mdescLeft">&#160;</td><td class="mdescRight">charge counter [mAh] <br /></td></tr>
<tr class="separator:ga6557151c4f6757ed72c67559237ee07b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac6ae84a15cfa28431ac343b739ce97c7"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SMTC__MODEM__DM__INFO__DEF.html#gac6ae84a15cfa28431ac343b739ce97c7">SMTC_MODEM_DM_FIELD_VOLTAGE</a>&#160;&#160;&#160;0x02</td></tr>
<tr class="memdesc:gac6ae84a15cfa28431ac343b739ce97c7"><td class="mdescLeft">&#160;</td><td class="mdescRight">supply voltage [1/50 V] <br /></td></tr>
<tr class="separator:gac6ae84a15cfa28431ac343b739ce97c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0d1c9964f1619e988257279c3e4f5d3d"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SMTC__MODEM__DM__INFO__DEF.html#ga0d1c9964f1619e988257279c3e4f5d3d">SMTC_MODEM_DM_FIELD_TEMPERATURE</a>&#160;&#160;&#160;0x03</td></tr>
<tr class="memdesc:ga0d1c9964f1619e988257279c3e4f5d3d"><td class="mdescLeft">&#160;</td><td class="mdescRight">junction temperature [deg Celsius] <br /></td></tr>
<tr class="separator:ga0d1c9964f1619e988257279c3e4f5d3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab66ebbe3611b81b7dc97337dc14da698"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SMTC__MODEM__DM__INFO__DEF.html#gab66ebbe3611b81b7dc97337dc14da698">SMTC_MODEM_DM_FIELD_SIGNAL</a>&#160;&#160;&#160;0x04</td></tr>
<tr class="memdesc:gab66ebbe3611b81b7dc97337dc14da698"><td class="mdescLeft">&#160;</td><td class="mdescRight">strength of last downlink (RSSI [dBm]+64, SNR [0.25 dB]) <br /></td></tr>
<tr class="separator:gab66ebbe3611b81b7dc97337dc14da698"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga888a118ec650cbdeb2b7ca3ac0dc7415"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SMTC__MODEM__DM__INFO__DEF.html#ga888a118ec650cbdeb2b7ca3ac0dc7415">SMTC_MODEM_DM_FIELD_UP_TIME</a>&#160;&#160;&#160;0x05</td></tr>
<tr class="memdesc:ga888a118ec650cbdeb2b7ca3ac0dc7415"><td class="mdescLeft">&#160;</td><td class="mdescRight">duration since last reset [h] <br /></td></tr>
<tr class="separator:ga888a118ec650cbdeb2b7ca3ac0dc7415"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga77be687eae45e2496449f182786afc01"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SMTC__MODEM__DM__INFO__DEF.html#ga77be687eae45e2496449f182786afc01">SMTC_MODEM_DM_FIELD_RX_TIME</a>&#160;&#160;&#160;0x06</td></tr>
<tr class="memdesc:ga77be687eae45e2496449f182786afc01"><td class="mdescLeft">&#160;</td><td class="mdescRight">duration since last downlink [h] <br /></td></tr>
<tr class="separator:ga77be687eae45e2496449f182786afc01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga489b50827bba45654f13a99be50eb005"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SMTC__MODEM__DM__INFO__DEF.html#ga489b50827bba45654f13a99be50eb005">SMTC_MODEM_DM_FIELD_ADR_MODE</a>&#160;&#160;&#160;0x08</td></tr>
<tr class="memdesc:ga489b50827bba45654f13a99be50eb005"><td class="mdescLeft">&#160;</td><td class="mdescRight">ADR profile (0-3) <br /></td></tr>
<tr class="separator:ga489b50827bba45654f13a99be50eb005"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga793074e5526aedc039249f24eca92cff"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SMTC__MODEM__DM__INFO__DEF.html#ga793074e5526aedc039249f24eca92cff">SMTC_MODEM_DM_FIELD_JOIN_EUI</a>&#160;&#160;&#160;0x09</td></tr>
<tr class="memdesc:ga793074e5526aedc039249f24eca92cff"><td class="mdescLeft">&#160;</td><td class="mdescRight">JoinEUI. <br /></td></tr>
<tr class="separator:ga793074e5526aedc039249f24eca92cff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2af8cf9e3be1d601387b8de5617d0e78"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SMTC__MODEM__DM__INFO__DEF.html#ga2af8cf9e3be1d601387b8de5617d0e78">SMTC_MODEM_DM_FIELD_INTERVAL</a>&#160;&#160;&#160;0x0A</td></tr>
<tr class="memdesc:ga2af8cf9e3be1d601387b8de5617d0e78"><td class="mdescLeft">&#160;</td><td class="mdescRight">reporting interval [values 0-63, units s/m/h/d] <br /></td></tr>
<tr class="separator:ga2af8cf9e3be1d601387b8de5617d0e78"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab4db6c9098cebd26fe81cdf30e49aba7"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SMTC__MODEM__DM__INFO__DEF.html#gab4db6c9098cebd26fe81cdf30e49aba7">SMTC_MODEM_DM_FIELD_REGION</a>&#160;&#160;&#160;0x0B</td></tr>
<tr class="memdesc:gab4db6c9098cebd26fe81cdf30e49aba7"><td class="mdescLeft">&#160;</td><td class="mdescRight">regulatory region <br /></td></tr>
<tr class="separator:gab4db6c9098cebd26fe81cdf30e49aba7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga89b07dba465836b180dda6b243bb4b72"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SMTC__MODEM__DM__INFO__DEF.html#ga89b07dba465836b180dda6b243bb4b72">SMTC_MODEM_DM_FIELD_RST_COUNT</a>&#160;&#160;&#160;0x0F</td></tr>
<tr class="memdesc:ga89b07dba465836b180dda6b243bb4b72"><td class="mdescLeft">&#160;</td><td class="mdescRight">modem reset count <br /></td></tr>
<tr class="separator:ga89b07dba465836b180dda6b243bb4b72"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa8471db087df79da96134969d2edf437"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SMTC__MODEM__DM__INFO__DEF.html#gaa8471db087df79da96134969d2edf437">SMTC_MODEM_DM_FIELD_DEV_EUI</a>&#160;&#160;&#160;0x10</td></tr>
<tr class="memdesc:gaa8471db087df79da96134969d2edf437"><td class="mdescLeft">&#160;</td><td class="mdescRight">DevEUI. <br /></td></tr>
<tr class="separator:gaa8471db087df79da96134969d2edf437"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabbcf7df7171223b52b57e4ffb6854637"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SMTC__MODEM__DM__INFO__DEF.html#gabbcf7df7171223b52b57e4ffb6854637">SMTC_MODEM_DM_FIELD_SESSION</a>&#160;&#160;&#160;0x12</td></tr>
<tr class="memdesc:gabbcf7df7171223b52b57e4ffb6854637"><td class="mdescLeft">&#160;</td><td class="mdescRight">session id / join nonce <br /></td></tr>
<tr class="separator:gabbcf7df7171223b52b57e4ffb6854637"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga312ffc7e05c242cb6b5fb133f8661045"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SMTC__MODEM__DM__INFO__DEF.html#ga312ffc7e05c242cb6b5fb133f8661045">SMTC_MODEM_DM_FIELD_CHIP_EUI</a>&#160;&#160;&#160;0x13</td></tr>
<tr class="memdesc:ga312ffc7e05c242cb6b5fb133f8661045"><td class="mdescLeft">&#160;</td><td class="mdescRight">ChipEUI. <br /></td></tr>
<tr class="separator:ga312ffc7e05c242cb6b5fb133f8661045"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8406e56fa632b38647c65c42b406475a"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SMTC__MODEM__DM__INFO__DEF.html#ga8406e56fa632b38647c65c42b406475a">SMTC_MODEM_DM_FIELD_APP_STATUS</a>&#160;&#160;&#160;0x16</td></tr>
<tr class="memdesc:ga8406e56fa632b38647c65c42b406475a"><td class="mdescLeft">&#160;</td><td class="mdescRight">application-specific status <br /></td></tr>
<tr class="separator:ga8406e56fa632b38647c65c42b406475a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa1c4c4960be525cce951352d28db1a76"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SMTC__MODEM__DM__INFO__DEF.html#gaa1c4c4960be525cce951352d28db1a76">SMTC_MODEM_DM_FIELD_ALMANAC_STATUS</a>&#160;&#160;&#160;0x18</td></tr>
<tr class="memdesc:gaa1c4c4960be525cce951352d28db1a76"><td class="mdescLeft">&#160;</td><td class="mdescRight">almanac status <br /></td></tr>
<tr class="separator:gaa1c4c4960be525cce951352d28db1a76"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a952d295e178005c052f035b4099ada4a"><td class="memItemLeft" align="right" valign="top"><a id="a952d295e178005c052f035b4099ada4a"></a>
typedef enum <a class="el" href="smtc__modem__api_8h.html#a28665f12d1a9220810ec9f87a5cf1620">smtc_modem_return_code_e</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a></td></tr>
<tr class="memdesc:a952d295e178005c052f035b4099ada4a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Modem Return Codes. <br /></td></tr>
<tr class="separator:a952d295e178005c052f035b4099ada4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e939ad0a2583987746c6f52e32cba67"><td class="memItemLeft" align="right" valign="top"><a id="a8e939ad0a2583987746c6f52e32cba67"></a>
typedef enum <a class="el" href="smtc__modem__api_8h.html#a868637adcb76838f2191a858942a3922">smtc_modem_adr_profile_e</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a8e939ad0a2583987746c6f52e32cba67">smtc_modem_adr_profile_t</a></td></tr>
<tr class="memdesc:a8e939ad0a2583987746c6f52e32cba67"><td class="mdescLeft">&#160;</td><td class="mdescRight">Modem Datarate Profiles. <br /></td></tr>
<tr class="separator:a8e939ad0a2583987746c6f52e32cba67"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c5f04daad69bdc1d2459ca1db13ee52"><td class="memItemLeft" align="right" valign="top"><a id="a9c5f04daad69bdc1d2459ca1db13ee52"></a>
typedef uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a9c5f04daad69bdc1d2459ca1db13ee52">smtc_modem_status_mask_t</a></td></tr>
<tr class="memdesc:a9c5f04daad69bdc1d2459ca1db13ee52"><td class="mdescLeft">&#160;</td><td class="mdescRight">Modem Status masks. <br /></td></tr>
<tr class="separator:a9c5f04daad69bdc1d2459ca1db13ee52"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af365833c8df22cfc0c09be7da28b7026"><td class="memItemLeft" align="right" valign="top"><a id="af365833c8df22cfc0c09be7da28b7026"></a>
typedef enum <a class="el" href="smtc__modem__api_8h.html#ab682a2a05b0b667114a96962370b154c">smtc_modem_class_e</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#af365833c8df22cfc0c09be7da28b7026">smtc_modem_class_t</a></td></tr>
<tr class="memdesc:af365833c8df22cfc0c09be7da28b7026"><td class="mdescLeft">&#160;</td><td class="mdescRight">Modem class enumeration. <br /></td></tr>
<tr class="separator:af365833c8df22cfc0c09be7da28b7026"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4c45fe9506a5c78ac277dd0d356b2c6"><td class="memItemLeft" align="right" valign="top"><a id="ad4c45fe9506a5c78ac277dd0d356b2c6"></a>
typedef enum <a class="el" href="smtc__modem__api_8h.html#afe3f0d8569065d33866b8be3e0d96c63">smtc_modem_file_upload_cipher_mode_e</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#ad4c45fe9506a5c78ac277dd0d356b2c6">smtc_modem_file_upload_cipher_mode_t</a></td></tr>
<tr class="memdesc:ad4c45fe9506a5c78ac277dd0d356b2c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Cipher mode for file upload service. <br /></td></tr>
<tr class="separator:ad4c45fe9506a5c78ac277dd0d356b2c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4bbaabd919974271b85baf6285250c9f"><td class="memItemLeft" align="right" valign="top"><a id="a4bbaabd919974271b85baf6285250c9f"></a>
typedef enum <a class="el" href="smtc__modem__api_8h.html#a4a85a18d018df88ec6ff03d56e3c9622">smtc_modem_stream_cipher_mode_e</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a4bbaabd919974271b85baf6285250c9f">smtc_modem_stream_cipher_mode_t</a></td></tr>
<tr class="memdesc:a4bbaabd919974271b85baf6285250c9f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Cipher mode for stream service. <br /></td></tr>
<tr class="separator:a4bbaabd919974271b85baf6285250c9f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af3defb0e1dfb1d9026f8330a4ed39557"><td class="memItemLeft" align="right" valign="top"><a id="af3defb0e1dfb1d9026f8330a4ed39557"></a>
typedef struct <a class="el" href="structsmtc__modem__version__s.html">smtc_modem_version_s</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#af3defb0e1dfb1d9026f8330a4ed39557">smtc_modem_version_t</a></td></tr>
<tr class="memdesc:af3defb0e1dfb1d9026f8330a4ed39557"><td class="mdescLeft">&#160;</td><td class="mdescRight">Version structure definition. <br /></td></tr>
<tr class="separator:af3defb0e1dfb1d9026f8330a4ed39557"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa74bbc8e8b31da7f77a9a9940f98d331"><td class="memItemLeft" align="right" valign="top"><a id="aa74bbc8e8b31da7f77a9a9940f98d331"></a>
typedef enum <a class="el" href="smtc__modem__api_8h.html#a19cbd85803f4d0e095acaa3ce237e829">smtc_modem_dm_info_interval_format_e</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#aa74bbc8e8b31da7f77a9a9940f98d331">smtc_modem_dm_info_interval_format_t</a></td></tr>
<tr class="memdesc:aa74bbc8e8b31da7f77a9a9940f98d331"><td class="mdescLeft">&#160;</td><td class="mdescRight">DM uplink reporting internal format. <br /></td></tr>
<tr class="separator:aa74bbc8e8b31da7f77a9a9940f98d331"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af86dcb15a5363575e5eeb3db1f14d6ff"><td class="memItemLeft" align="right" valign="top"><a id="af86dcb15a5363575e5eeb3db1f14d6ff"></a>
typedef enum <a class="el" href="smtc__modem__api_8h.html#a12aca6f18d0c10eb4a202059d4cdf97e">smtc_modem_region_e</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#af86dcb15a5363575e5eeb3db1f14d6ff">smtc_modem_region_t</a></td></tr>
<tr class="memdesc:af86dcb15a5363575e5eeb3db1f14d6ff"><td class="mdescLeft">&#160;</td><td class="mdescRight">Modem region ID. <br /></td></tr>
<tr class="separator:af86dcb15a5363575e5eeb3db1f14d6ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:a28665f12d1a9220810ec9f87a5cf1620"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a28665f12d1a9220810ec9f87a5cf1620">smtc_modem_return_code_e</a> { <br />
&#160;&#160;<a class="el" href="smtc__modem__api_8h.html#a28665f12d1a9220810ec9f87a5cf1620ab834a5bb2ce6d97c2831fe3d71103c14">RC_OK</a> = 0x00
, <a class="el" href="smtc__modem__api_8h.html#a28665f12d1a9220810ec9f87a5cf1620a44722346ed4d9697eafefccbc540765d">RC_UNKNOWN</a> = 0x01
, <a class="el" href="smtc__modem__api_8h.html#a28665f12d1a9220810ec9f87a5cf1620ab160a5d4159a90180d6922bf65931f7b">RC_NOT_IMPLEMENTED</a> = 0x02
, <a class="el" href="smtc__modem__api_8h.html#a28665f12d1a9220810ec9f87a5cf1620a37c97cd2e742eb38b2d14ea58356181a">RC_NOT_INIT</a> = 0x03
, <br />
&#160;&#160;<a class="el" href="smtc__modem__api_8h.html#a28665f12d1a9220810ec9f87a5cf1620a72631ecb3362f3f7c33cfee4251a2b8a">RC_INVALID</a> = 0x04
, <a class="el" href="smtc__modem__api_8h.html#a28665f12d1a9220810ec9f87a5cf1620a869dd46c2d082bad131e39c2052f213f">RC_BUSY</a> = 0x05
, <a class="el" href="smtc__modem__api_8h.html#a28665f12d1a9220810ec9f87a5cf1620a827565d735c8517ed5079c5a93b513b5">RC_FAIL</a> = 0x06
, <a class="el" href="smtc__modem__api_8h.html#a28665f12d1a9220810ec9f87a5cf1620a4b9a7df2f3e66e38b9a0b27dfce73c0a">RC_BAD_FORMAT</a> = 0x07
, <br />
&#160;&#160;<a class="el" href="smtc__modem__api_8h.html#a28665f12d1a9220810ec9f87a5cf1620a781b7f097df41705b8d1f4a5932a08bb">RC_BAD_CRC</a> = 0x08
, <a class="el" href="smtc__modem__api_8h.html#a28665f12d1a9220810ec9f87a5cf1620a7a62074e4c5d4226fe77d3ca127cce9f">RC_BAD_SIGNATURE</a> = 0x09
, <a class="el" href="smtc__modem__api_8h.html#a28665f12d1a9220810ec9f87a5cf1620ab6d30e486bf7faabc78644ed63050e4a">RC_BAD_SIZE</a> = 0x0A
, <a class="el" href="smtc__modem__api_8h.html#a28665f12d1a9220810ec9f87a5cf1620afac262a9eea4e4288bfce1ac356da883">RC_FRAME_ERROR</a> = 0x0F
, <br />
&#160;&#160;<a class="el" href="smtc__modem__api_8h.html#a28665f12d1a9220810ec9f87a5cf1620ae2789f1ef47e6e1a8ec663688463f3bf">RC_NO_TIME</a> = 0x10
<br />
 }</td></tr>
<tr class="memdesc:a28665f12d1a9220810ec9f87a5cf1620"><td class="mdescLeft">&#160;</td><td class="mdescRight">Modem Return Codes.  <a href="smtc__modem__api_8h.html#a28665f12d1a9220810ec9f87a5cf1620">More...</a><br /></td></tr>
<tr class="separator:a28665f12d1a9220810ec9f87a5cf1620"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a868637adcb76838f2191a858942a3922"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a868637adcb76838f2191a858942a3922">smtc_modem_adr_profile_e</a> { <a class="el" href="smtc__modem__api_8h.html#a868637adcb76838f2191a858942a3922af58f77886527c799627285efc7b87ea6">SMTC_MODEM_ADR_PROFILE_NETWORK_CONTROLLED</a> = 0x00
, <a class="el" href="smtc__modem__api_8h.html#a868637adcb76838f2191a858942a3922a2e3e3e7961336c7d9887a0c58ad9645d">SMTC_MODEM_ADR_PROFILE_MOBILE_LONG_RANGE</a> = 0x01
, <a class="el" href="smtc__modem__api_8h.html#a868637adcb76838f2191a858942a3922a6dcae76dfc1d5055141021c81a0c006b">SMTC_MODEM_ADR_PROFILE_MOBILE_LOW_POWER</a> = 0x02
, <a class="el" href="smtc__modem__api_8h.html#a868637adcb76838f2191a858942a3922aa16fc599d480d3762b2ccf96379d0c3c">SMTC_MODEM_ADR_PROFILE_CUSTOM</a> = 0x03
 }</td></tr>
<tr class="memdesc:a868637adcb76838f2191a858942a3922"><td class="mdescLeft">&#160;</td><td class="mdescRight">Modem Datarate Profiles.  <a href="smtc__modem__api_8h.html#a868637adcb76838f2191a858942a3922">More...</a><br /></td></tr>
<tr class="separator:a868637adcb76838f2191a858942a3922"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7060629b29cc2a3f22e183e8032d563d"><td class="memItemLeft" align="right" valign="top"><a id="a7060629b29cc2a3f22e183e8032d563d"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a7060629b29cc2a3f22e183e8032d563d">smtc_modem_status_mask_e</a> { <br />
&#160;&#160;<b>SMTC_MODEM_STATUS_BROWNOUT</b> = ( 1 &lt;&lt; 0 )
, <b>SMTC_MODEM_STATUS_CRASH</b> = ( 1 &lt;&lt; 1 )
, <b>SMTC_MODEM_STATUS_MUTE</b> = ( 1 &lt;&lt; 2 )
, <b>SMTC_MODEM_STATUS_JOINED</b> = ( 1 &lt;&lt; 3 )
, <br />
&#160;&#160;<b>SMTC_MODEM_STATUS_SUSPEND</b> = ( 1 &lt;&lt; 4 )
, <b>SMTC_MODEM_STATUS_UPLOAD</b> = ( 1 &lt;&lt; 5 )
, <b>SMTC_MODEM_STATUS_JOINING</b> = ( 1 &lt;&lt; 6 )
, <b>SMTC_MODEM_STATUS_STREAM</b> = ( 1 &lt;&lt; 7 )
<br />
 }</td></tr>
<tr class="memdesc:a7060629b29cc2a3f22e183e8032d563d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Modem status. <br /></td></tr>
<tr class="separator:a7060629b29cc2a3f22e183e8032d563d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab682a2a05b0b667114a96962370b154c"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#ab682a2a05b0b667114a96962370b154c">smtc_modem_class_e</a> { <a class="el" href="smtc__modem__api_8h.html#ab682a2a05b0b667114a96962370b154ca3e9ed89ca54853930d6b605a7afe9ac5">SMTC_MODEM_CLASS_A</a> = 0x00
, <a class="el" href="smtc__modem__api_8h.html#ab682a2a05b0b667114a96962370b154cae291d7ed6fb8a46a5affb23e4d9723a6">SMTC_MODEM_CLASS_C</a> = 0x01
 }</td></tr>
<tr class="memdesc:ab682a2a05b0b667114a96962370b154c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Modem class enumeration.  <a href="smtc__modem__api_8h.html#ab682a2a05b0b667114a96962370b154c">More...</a><br /></td></tr>
<tr class="separator:ab682a2a05b0b667114a96962370b154c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe3f0d8569065d33866b8be3e0d96c63"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#afe3f0d8569065d33866b8be3e0d96c63">smtc_modem_file_upload_cipher_mode_e</a> { <a class="el" href="smtc__modem__api_8h.html#afe3f0d8569065d33866b8be3e0d96c63a85849b62c52857e860b0017a81b76400">SMTC_MODEM_FILE_UPLOAD_NO_CIPHER</a>
, <a class="el" href="smtc__modem__api_8h.html#afe3f0d8569065d33866b8be3e0d96c63a00bafc555806c8d1cd2928468a247e9e">SMTC_MODEM_FILE_UPLOAD_AES_WITH_APPSKEY</a>
 }</td></tr>
<tr class="memdesc:afe3f0d8569065d33866b8be3e0d96c63"><td class="mdescLeft">&#160;</td><td class="mdescRight">Cipher mode for file upload service.  <a href="smtc__modem__api_8h.html#afe3f0d8569065d33866b8be3e0d96c63">More...</a><br /></td></tr>
<tr class="separator:afe3f0d8569065d33866b8be3e0d96c63"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a85a18d018df88ec6ff03d56e3c9622"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a4a85a18d018df88ec6ff03d56e3c9622">smtc_modem_stream_cipher_mode_e</a> { <a class="el" href="smtc__modem__api_8h.html#a4a85a18d018df88ec6ff03d56e3c9622af03652db409d109457790d25f95c2497">SMTC_MODEM_STREAM_NO_CIPHER</a>
, <a class="el" href="smtc__modem__api_8h.html#a4a85a18d018df88ec6ff03d56e3c9622af65c7eff3ec453d088ebed14894fc032">SMTC_MODEM_STREAM_AES_WITH_APPSKEY</a>
 }</td></tr>
<tr class="memdesc:a4a85a18d018df88ec6ff03d56e3c9622"><td class="mdescLeft">&#160;</td><td class="mdescRight">Cipher mode for stream service.  <a href="smtc__modem__api_8h.html#a4a85a18d018df88ec6ff03d56e3c9622">More...</a><br /></td></tr>
<tr class="separator:a4a85a18d018df88ec6ff03d56e3c9622"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19cbd85803f4d0e095acaa3ce237e829"><td class="memItemLeft" align="right" valign="top"><a id="a19cbd85803f4d0e095acaa3ce237e829"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a19cbd85803f4d0e095acaa3ce237e829">smtc_modem_dm_info_interval_format_e</a> { <b>SMTC_MODEM_DM_INFO_INTERVAL_IN_SECOND</b> = 0x00
, <b>SMTC_MODEM_DM_INFO_INTERVAL_IN_DAY</b> = 0x01
, <b>SMTC_MODEM_DM_INFO_INTERVAL_IN_HOUR</b> = 0x02
, <b>SMTC_MODEM_DM_INFO_INTERVAL_IN_MINUTE</b> = 0x03
 }</td></tr>
<tr class="memdesc:a19cbd85803f4d0e095acaa3ce237e829"><td class="mdescLeft">&#160;</td><td class="mdescRight">DM uplink reporting internal format. <br /></td></tr>
<tr class="separator:a19cbd85803f4d0e095acaa3ce237e829"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a12aca6f18d0c10eb4a202059d4cdf97e"><td class="memItemLeft" align="right" valign="top"><a id="a12aca6f18d0c10eb4a202059d4cdf97e"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a12aca6f18d0c10eb4a202059d4cdf97e">smtc_modem_region_e</a> { <br />
&#160;&#160;<b>SMTC_MODEM_REGION_EU_868</b> = 1
, <b>SMTC_MODEM_REGION_AS_923</b> = 2
, <b>SMTC_MODEM_REGION_US_915</b> = 3
, <b>SMTC_MODEM_REGION_AU_915</b> = 4
, <br />
&#160;&#160;<b>SMTC_MODEM_REGION_CN_470</b> = 5
, <b>SMTC_MODEM_REGION_WW2G4</b> = 6
, <b>SMTC_MODEM_REGION_AS_923_GRP2</b> = 7
, <b>SMTC_MODEM_REGION_AS_923_GRP3</b> = 8
, <br />
&#160;&#160;<b>SMTC_MODEM_REGION_IN_865</b> = 9
, <b>SMTC_MODEM_REGION_KR_920</b> = 10
, <b>SMTC_MODEM_REGION_RU_864</b> = 11
, <b>SMTC_MODEM_REGION_CN_470_RP_1_0</b> = 12
<br />
 }</td></tr>
<tr class="memdesc:a12aca6f18d0c10eb4a202059d4cdf97e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Modem region ID. <br /></td></tr>
<tr class="separator:a12aca6f18d0c10eb4a202059d4cdf97e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:aadbf482aa0249acd4c18dda44c613d80"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#aadbf482aa0249acd4c18dda44c613d80">smtc_modem_get_event</a> (uint8_t *type, uint8_t *count, uint8_t *stack_id, uint8_t *data, uint16_t *data_length, uint8_t *pending_count)</td></tr>
<tr class="memdesc:aadbf482aa0249acd4c18dda44c613d80"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the modem event.  <a href="smtc__modem__api_8h.html#aadbf482aa0249acd4c18dda44c613d80">More...</a><br /></td></tr>
<tr class="separator:aadbf482aa0249acd4c18dda44c613d80"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a734a1750ff3baba2327970b1e36cf606"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a734a1750ff3baba2327970b1e36cf606">smtc_modem_get_version</a> (<a class="el" href="smtc__modem__api_8h.html#af3defb0e1dfb1d9026f8330a4ed39557">smtc_modem_version_t</a> *firmware_version, <a class="el" href="smtc__modem__api_8h.html#af3defb0e1dfb1d9026f8330a4ed39557">smtc_modem_version_t</a> *lorawan_version)</td></tr>
<tr class="memdesc:a734a1750ff3baba2327970b1e36cf606"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the firmware and the LoRaWAN versions.  <a href="smtc__modem__api_8h.html#a734a1750ff3baba2327970b1e36cf606">More...</a><br /></td></tr>
<tr class="separator:a734a1750ff3baba2327970b1e36cf606"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7dba162eca443d021c3b247f48c16ee"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#ad7dba162eca443d021c3b247f48c16ee">smtc_modem_reset</a> (void)</td></tr>
<tr class="memdesc:ad7dba162eca443d021c3b247f48c16ee"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reset the modem.  <a href="smtc__modem__api_8h.html#ad7dba162eca443d021c3b247f48c16ee">More...</a><br /></td></tr>
<tr class="separator:ad7dba162eca443d021c3b247f48c16ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6794d6981ceaa480a50986f2e143a6d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#af6794d6981ceaa480a50986f2e143a6d">smtc_modem_factory_reset</a> (void)</td></tr>
<tr class="memdesc:af6794d6981ceaa480a50986f2e143a6d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reset the modem to its original state.  <a href="smtc__modem__api_8h.html#af6794d6981ceaa480a50986f2e143a6d">More...</a><br /></td></tr>
<tr class="separator:af6794d6981ceaa480a50986f2e143a6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6559056c141dde5dc8bc7fc7be233533"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a6559056c141dde5dc8bc7fc7be233533">smtc_modem_get_charge</a> (uint32_t *charge_mah)</td></tr>
<tr class="memdesc:a6559056c141dde5dc8bc7fc7be233533"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the total charge counter of the modem in mAh.  <a href="smtc__modem__api_8h.html#a6559056c141dde5dc8bc7fc7be233533">More...</a><br /></td></tr>
<tr class="separator:a6559056c141dde5dc8bc7fc7be233533"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a927f65d89842bb0f37ae9b89ff115ef0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a927f65d89842bb0f37ae9b89ff115ef0">smtc_modem_reset_charge</a> (void)</td></tr>
<tr class="memdesc:a927f65d89842bb0f37ae9b89ff115ef0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reset the total charge counter of the modem.  <a href="smtc__modem__api_8h.html#a927f65d89842bb0f37ae9b89ff115ef0">More...</a><br /></td></tr>
<tr class="separator:a927f65d89842bb0f37ae9b89ff115ef0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a032c85549cff5a84f9877d7e8feea96e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a032c85549cff5a84f9877d7e8feea96e">smtc_modem_get_tx_power_offset_db</a> (uint8_t stack_id, int8_t *tx_pwr_offset_db)</td></tr>
<tr class="memdesc:a032c85549cff5a84f9877d7e8feea96e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the Tx power offset in dB.  <a href="smtc__modem__api_8h.html#a032c85549cff5a84f9877d7e8feea96e">More...</a><br /></td></tr>
<tr class="separator:a032c85549cff5a84f9877d7e8feea96e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeba63e8f8885e25aaef349f5e3a3d243"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#aeba63e8f8885e25aaef349f5e3a3d243">smtc_modem_set_tx_power_offset_db</a> (uint8_t stack_id, int8_t tx_pwr_offset_db)</td></tr>
<tr class="memdesc:aeba63e8f8885e25aaef349f5e3a3d243"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the Tx power offset in dB.  <a href="smtc__modem__api_8h.html#aeba63e8f8885e25aaef349f5e3a3d243">More...</a><br /></td></tr>
<tr class="separator:aeba63e8f8885e25aaef349f5e3a3d243"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7483685ece7e9d353d152921c091b7a9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a7483685ece7e9d353d152921c091b7a9">smtc_modem_get_rx_power_offset_db</a> (uint8_t stack_id, int16_t *rx_offset_db)</td></tr>
<tr class="memdesc:a7483685ece7e9d353d152921c091b7a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the Rx power offset in dB.  <a href="smtc__modem__api_8h.html#a7483685ece7e9d353d152921c091b7a9">More...</a><br /></td></tr>
<tr class="separator:a7483685ece7e9d353d152921c091b7a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf1c41c973502266d8fbd0eecfcb679f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#aaf1c41c973502266d8fbd0eecfcb679f">smtc_modem_set_rx_power_offset_db</a> (uint8_t stack_id, int16_t rx_offset_db)</td></tr>
<tr class="memdesc:aaf1c41c973502266d8fbd0eecfcb679f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the Rx power offset in dB.  <a href="smtc__modem__api_8h.html#aaf1c41c973502266d8fbd0eecfcb679f">More...</a><br /></td></tr>
<tr class="separator:aaf1c41c973502266d8fbd0eecfcb679f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b00f9d2df223e5f9336d2266160883c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a2b00f9d2df223e5f9336d2266160883c">smtc_modem_set_alcsync_mode</a> (uint8_t mode)</td></tr>
<tr class="memdesc:a2b00f9d2df223e5f9336d2266160883c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable / disable the Application Layer Clock Synchronization (ALCSync) service.  <a href="smtc__modem__api_8h.html#a2b00f9d2df223e5f9336d2266160883c">More...</a><br /></td></tr>
<tr class="separator:a2b00f9d2df223e5f9336d2266160883c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef01f7d4b56feb08d988ebfef617c649"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#aef01f7d4b56feb08d988ebfef617c649">smtc_modem_get_alcsync_mode</a> (uint8_t *mode)</td></tr>
<tr class="memdesc:aef01f7d4b56feb08d988ebfef617c649"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the current state of the Application Layer Clock Synchronization (ALCSync) service.  <a href="smtc__modem__api_8h.html#aef01f7d4b56feb08d988ebfef617c649">More...</a><br /></td></tr>
<tr class="separator:aef01f7d4b56feb08d988ebfef617c649"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac6bb8d02b4515ca4de0260f7c56d551e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#ac6bb8d02b4515ca4de0260f7c56d551e">smtc_modem_get_time</a> (uint32_t *gps_time_s)</td></tr>
<tr class="memdesc:ac6bb8d02b4515ca4de0260f7c56d551e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get GPS epoch time.  <a href="smtc__modem__api_8h.html#ac6bb8d02b4515ca4de0260f7c56d551e">More...</a><br /></td></tr>
<tr class="separator:ac6bb8d02b4515ca4de0260f7c56d551e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae94eff2ff8ab76839fba983df6c35041"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#ae94eff2ff8ab76839fba983df6c35041">smtc_modem_set_alc_sync_fport</a> (uint8_t alc_sync_fport)</td></tr>
<tr class="memdesc:ae94eff2ff8ab76839fba983df6c35041"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set Application Layer Clock Synchronization (ALCSync) service FPort.  <a href="smtc__modem__api_8h.html#ae94eff2ff8ab76839fba983df6c35041">More...</a><br /></td></tr>
<tr class="separator:ae94eff2ff8ab76839fba983df6c35041"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac6f517cb949e3a7b2dc6e52ae3730db2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#ac6f517cb949e3a7b2dc6e52ae3730db2">smtc_modem_get_alc_sync_fport</a> (uint8_t *alc_sync_fport)</td></tr>
<tr class="memdesc:ac6f517cb949e3a7b2dc6e52ae3730db2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get Application Layer Clock Synchronization (ALCSync) service FPort.  <a href="smtc__modem__api_8h.html#ac6f517cb949e3a7b2dc6e52ae3730db2">More...</a><br /></td></tr>
<tr class="separator:ac6f517cb949e3a7b2dc6e52ae3730db2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a411d9699a80d7559d5dd41a52ff1a777"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a411d9699a80d7559d5dd41a52ff1a777">smtc_modem_get_status</a> (uint8_t stack_id, <a class="el" href="smtc__modem__api_8h.html#a9c5f04daad69bdc1d2459ca1db13ee52">smtc_modem_status_mask_t</a> *status_mask)</td></tr>
<tr class="memdesc:a411d9699a80d7559d5dd41a52ff1a777"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the modem status.  <a href="smtc__modem__api_8h.html#a411d9699a80d7559d5dd41a52ff1a777">More...</a><br /></td></tr>
<tr class="separator:a411d9699a80d7559d5dd41a52ff1a777"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa19bd57ec5f517d8b190eaf2053a6c55"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#aa19bd57ec5f517d8b190eaf2053a6c55">smtc_modem_start_alarm_timer</a> (uint32_t alarm_timer_in_s)</td></tr>
<tr class="memdesc:aa19bd57ec5f517d8b190eaf2053a6c55"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set and start the alarm timer.  <a href="smtc__modem__api_8h.html#aa19bd57ec5f517d8b190eaf2053a6c55">More...</a><br /></td></tr>
<tr class="separator:aa19bd57ec5f517d8b190eaf2053a6c55"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad820d2f52fa064f19b215ad7052ce3e4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#ad820d2f52fa064f19b215ad7052ce3e4">smtc_modem_clear_alarm_timer</a> (void)</td></tr>
<tr class="memdesc:ad820d2f52fa064f19b215ad7052ce3e4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stop and clear alarm timer.  <a href="smtc__modem__api_8h.html#ad820d2f52fa064f19b215ad7052ce3e4">More...</a><br /></td></tr>
<tr class="separator:ad820d2f52fa064f19b215ad7052ce3e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab18b378ebeede432ad3e10f349278a41"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#ab18b378ebeede432ad3e10f349278a41">smtc_modem_get_alarm_remaining_time</a> (uint32_t *remaining_time_in_s)</td></tr>
<tr class="memdesc:ab18b378ebeede432ad3e10f349278a41"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the number of seconds remaining before the alarm triggers an event.  <a href="smtc__modem__api_8h.html#ab18b378ebeede432ad3e10f349278a41">More...</a><br /></td></tr>
<tr class="separator:ab18b378ebeede432ad3e10f349278a41"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b013a63da0912f59fa84097318dbce8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a0b013a63da0912f59fa84097318dbce8">smtc_modem_get_joineui</a> (uint8_t stack_id, uint8_t joineui[<a class="el" href="smtc__modem__api_8h.html#ad5683363bec8bb86c2993e18909fe50d">SMTC_MODEM_EUI_LENGTH</a>])</td></tr>
<tr class="memdesc:a0b013a63da0912f59fa84097318dbce8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the JoinEUI.  <a href="smtc__modem__api_8h.html#a0b013a63da0912f59fa84097318dbce8">More...</a><br /></td></tr>
<tr class="separator:a0b013a63da0912f59fa84097318dbce8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a635b5042ee577962c6c2cf4e0f34c351"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a635b5042ee577962c6c2cf4e0f34c351">smtc_modem_set_joineui</a> (uint8_t stack_id, const uint8_t joineui[<a class="el" href="smtc__modem__api_8h.html#ad5683363bec8bb86c2993e18909fe50d">SMTC_MODEM_EUI_LENGTH</a>])</td></tr>
<tr class="memdesc:a635b5042ee577962c6c2cf4e0f34c351"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the JoinEUI.  <a href="smtc__modem__api_8h.html#a635b5042ee577962c6c2cf4e0f34c351">More...</a><br /></td></tr>
<tr class="separator:a635b5042ee577962c6c2cf4e0f34c351"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac35b956e1e6d026a6dbdf16ab7fc2222"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#ac35b956e1e6d026a6dbdf16ab7fc2222">smtc_modem_get_deveui</a> (uint8_t stack_id, uint8_t deveui[<a class="el" href="smtc__modem__api_8h.html#ad5683363bec8bb86c2993e18909fe50d">SMTC_MODEM_EUI_LENGTH</a>])</td></tr>
<tr class="memdesc:ac35b956e1e6d026a6dbdf16ab7fc2222"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the DevEUI.  <a href="smtc__modem__api_8h.html#ac35b956e1e6d026a6dbdf16ab7fc2222">More...</a><br /></td></tr>
<tr class="separator:ac35b956e1e6d026a6dbdf16ab7fc2222"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2eeb2277a0542fa9851834f90924711"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#ad2eeb2277a0542fa9851834f90924711">smtc_modem_set_deveui</a> (uint8_t stack_id, const uint8_t deveui[<a class="el" href="smtc__modem__api_8h.html#ad5683363bec8bb86c2993e18909fe50d">SMTC_MODEM_EUI_LENGTH</a>])</td></tr>
<tr class="memdesc:ad2eeb2277a0542fa9851834f90924711"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the DevEUI.  <a href="smtc__modem__api_8h.html#ad2eeb2277a0542fa9851834f90924711">More...</a><br /></td></tr>
<tr class="separator:ad2eeb2277a0542fa9851834f90924711"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00e9f3e76d73988e81856a2840a91083"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a00e9f3e76d73988e81856a2840a91083">smtc_modem_set_nwkkey</a> (uint8_t stack_id, const uint8_t nwkkey[<a class="el" href="smtc__modem__api_8h.html#a4df00f7e2fcaee5040cd828bf3c03a6c">SMTC_MODEM_KEY_LENGTH</a>])</td></tr>
<tr class="memdesc:a00e9f3e76d73988e81856a2840a91083"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the Network Key (aka Application Key in LoRaWAN v1.0.x)  <a href="smtc__modem__api_8h.html#a00e9f3e76d73988e81856a2840a91083">More...</a><br /></td></tr>
<tr class="separator:a00e9f3e76d73988e81856a2840a91083"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa7a4218f00a5f9d1ae32f5d42fe311b3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#aa7a4218f00a5f9d1ae32f5d42fe311b3">smtc_modem_get_class</a> (uint8_t stack_id, <a class="el" href="smtc__modem__api_8h.html#af365833c8df22cfc0c09be7da28b7026">smtc_modem_class_t</a> *lorawan_class)</td></tr>
<tr class="memdesc:aa7a4218f00a5f9d1ae32f5d42fe311b3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the current LoRaWAN class.  <a href="smtc__modem__api_8h.html#aa7a4218f00a5f9d1ae32f5d42fe311b3">More...</a><br /></td></tr>
<tr class="separator:aa7a4218f00a5f9d1ae32f5d42fe311b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e3f461177c5cc9c89fef9e9a052c5e9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a5e3f461177c5cc9c89fef9e9a052c5e9">smtc_modem_set_class</a> (uint8_t stack_id, <a class="el" href="smtc__modem__api_8h.html#af365833c8df22cfc0c09be7da28b7026">smtc_modem_class_t</a> lorawan_class)</td></tr>
<tr class="memdesc:a5e3f461177c5cc9c89fef9e9a052c5e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the LoRaWAN class.  <a href="smtc__modem__api_8h.html#a5e3f461177c5cc9c89fef9e9a052c5e9">More...</a><br /></td></tr>
<tr class="separator:a5e3f461177c5cc9c89fef9e9a052c5e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2230f2b6007f89d7b3527961278c2b5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#ad2230f2b6007f89d7b3527961278c2b5">smtc_modem_get_region</a> (uint8_t stack_id, <a class="el" href="smtc__modem__api_8h.html#af86dcb15a5363575e5eeb3db1f14d6ff">smtc_modem_region_t</a> *region)</td></tr>
<tr class="memdesc:ad2230f2b6007f89d7b3527961278c2b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the current LoRaWAN region.  <a href="smtc__modem__api_8h.html#ad2230f2b6007f89d7b3527961278c2b5">More...</a><br /></td></tr>
<tr class="separator:ad2230f2b6007f89d7b3527961278c2b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a22722cc73fed77fdafa2a187f54c34d7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a22722cc73fed77fdafa2a187f54c34d7">smtc_modem_set_region</a> (uint8_t stack_id, <a class="el" href="smtc__modem__api_8h.html#af86dcb15a5363575e5eeb3db1f14d6ff">smtc_modem_region_t</a> region)</td></tr>
<tr class="memdesc:a22722cc73fed77fdafa2a187f54c34d7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the LoRaWAN region.  <a href="smtc__modem__api_8h.html#a22722cc73fed77fdafa2a187f54c34d7">More...</a><br /></td></tr>
<tr class="separator:a22722cc73fed77fdafa2a187f54c34d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac028ab1b3c44f7f1f1771b65d588925d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#ac028ab1b3c44f7f1f1771b65d588925d">smtc_modem_get_adr_profile</a> (uint8_t stack_id, <a class="el" href="smtc__modem__api_8h.html#a8e939ad0a2583987746c6f52e32cba67">smtc_modem_adr_profile_t</a> *adr_profile)</td></tr>
<tr class="memdesc:ac028ab1b3c44f7f1f1771b65d588925d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the current ADR profile.  <a href="smtc__modem__api_8h.html#ac028ab1b3c44f7f1f1771b65d588925d">More...</a><br /></td></tr>
<tr class="separator:ac028ab1b3c44f7f1f1771b65d588925d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ce81d645723b66c0197f11d9a281103"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a0ce81d645723b66c0197f11d9a281103">smtc_modem_set_adr_profile</a> (uint8_t stack_id, <a class="el" href="smtc__modem__api_8h.html#a8e939ad0a2583987746c6f52e32cba67">smtc_modem_adr_profile_t</a> adr_profile, const uint8_t adr_custom_data[<a class="el" href="smtc__modem__api_8h.html#ad9e1603f5b656f766fb6d914cafdbb54">SMTC_MODEM_CUSTOM_ADR_DATA_LENGTH</a>])</td></tr>
<tr class="memdesc:a0ce81d645723b66c0197f11d9a281103"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the ADR profile.  <a href="smtc__modem__api_8h.html#a0ce81d645723b66c0197f11d9a281103">More...</a><br /></td></tr>
<tr class="separator:a0ce81d645723b66c0197f11d9a281103"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41781c09d149ed18b7fce11b10df6f9a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a41781c09d149ed18b7fce11b10df6f9a">smtc_modem_get_adr_custom_data</a> (uint8_t stack_id, uint8_t adr_custom_data[<a class="el" href="smtc__modem__api_8h.html#ad9e1603f5b656f766fb6d914cafdbb54">SMTC_MODEM_CUSTOM_ADR_DATA_LENGTH</a>])</td></tr>
<tr class="memdesc:a41781c09d149ed18b7fce11b10df6f9a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the configured custom ADR profile data.  <a href="smtc__modem__api_8h.html#a41781c09d149ed18b7fce11b10df6f9a">More...</a><br /></td></tr>
<tr class="separator:a41781c09d149ed18b7fce11b10df6f9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8a9450d1839ca12f62903f4add65b00d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a8a9450d1839ca12f62903f4add65b00d">smtc_modem_get_available_datarates</a> (uint8_t stack_id, uint16_t *available_datarates_mask)</td></tr>
<tr class="memdesc:a8a9450d1839ca12f62903f4add65b00d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the current available Datarate in regards of Uplink ChMash and DwellTime.  <a href="smtc__modem__api_8h.html#a8a9450d1839ca12f62903f4add65b00d">More...</a><br /></td></tr>
<tr class="separator:a8a9450d1839ca12f62903f4add65b00d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94ea53f8b12a2072febba13ac6e78d70"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a94ea53f8b12a2072febba13ac6e78d70">smtc_modem_get_dm_fport</a> (uint8_t *dm_fport)</td></tr>
<tr class="memdesc:a94ea53f8b12a2072febba13ac6e78d70"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the Device Management LoRaWAN FPort.  <a href="smtc__modem__api_8h.html#a94ea53f8b12a2072febba13ac6e78d70">More...</a><br /></td></tr>
<tr class="separator:a94ea53f8b12a2072febba13ac6e78d70"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a101db5bda8332b5651c48d7f0abfb8d5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a101db5bda8332b5651c48d7f0abfb8d5">smtc_modem_set_dm_fport</a> (uint8_t dm_fport)</td></tr>
<tr class="memdesc:a101db5bda8332b5651c48d7f0abfb8d5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the Device Management LoRaWAN FPort.  <a href="smtc__modem__api_8h.html#a101db5bda8332b5651c48d7f0abfb8d5">More...</a><br /></td></tr>
<tr class="separator:a101db5bda8332b5651c48d7f0abfb8d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00524059c55298c735ea5c1211d504b6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a00524059c55298c735ea5c1211d504b6">smtc_modem_get_dm_info_interval</a> (<a class="el" href="smtc__modem__api_8h.html#aa74bbc8e8b31da7f77a9a9940f98d331">smtc_modem_dm_info_interval_format_t</a> *format, uint8_t *interval)</td></tr>
<tr class="memdesc:a00524059c55298c735ea5c1211d504b6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the interval between 2 DM info field messages.  <a href="smtc__modem__api_8h.html#a00524059c55298c735ea5c1211d504b6">More...</a><br /></td></tr>
<tr class="separator:a00524059c55298c735ea5c1211d504b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad6b69d8f2b1efd81aec3e896bea39637"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#ad6b69d8f2b1efd81aec3e896bea39637">smtc_modem_set_dm_info_interval</a> (<a class="el" href="smtc__modem__api_8h.html#aa74bbc8e8b31da7f77a9a9940f98d331">smtc_modem_dm_info_interval_format_t</a> format, uint8_t interval)</td></tr>
<tr class="memdesc:ad6b69d8f2b1efd81aec3e896bea39637"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the interval between 2 DM info field messages.  <a href="smtc__modem__api_8h.html#ad6b69d8f2b1efd81aec3e896bea39637">More...</a><br /></td></tr>
<tr class="separator:ad6b69d8f2b1efd81aec3e896bea39637"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e26803a030e0a1ace484fecd8b107f6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a5e26803a030e0a1ace484fecd8b107f6">smtc_modem_get_dm_info_fields</a> (uint8_t *dm_fields_payload, uint8_t *dm_field_length)</td></tr>
<tr class="memdesc:a5e26803a030e0a1ace484fecd8b107f6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get DM info fields.  <a href="smtc__modem__api_8h.html#a5e26803a030e0a1ace484fecd8b107f6">More...</a><br /></td></tr>
<tr class="separator:a5e26803a030e0a1ace484fecd8b107f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab4837763ecc339a0a6a836040b6463a8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#ab4837763ecc339a0a6a836040b6463a8">smtc_modem_set_dm_info_fields</a> (const uint8_t *dm_fields_payload, uint8_t dm_field_length)</td></tr>
<tr class="memdesc:ab4837763ecc339a0a6a836040b6463a8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the DM info fields to be sent on a regular basis.  <a href="smtc__modem__api_8h.html#ab4837763ecc339a0a6a836040b6463a8">More...</a><br /></td></tr>
<tr class="separator:ab4837763ecc339a0a6a836040b6463a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a499ee784cdf5f63b1b8588db0123200d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a499ee784cdf5f63b1b8588db0123200d">smtc_modem_request_single_dm_uplink</a> (const uint8_t *dm_fields_payload, uint8_t dm_field_length)</td></tr>
<tr class="memdesc:a499ee784cdf5f63b1b8588db0123200d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Request an immediate DM status.  <a href="smtc__modem__api_8h.html#a499ee784cdf5f63b1b8588db0123200d">More...</a><br /></td></tr>
<tr class="separator:a499ee784cdf5f63b1b8588db0123200d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ccd60fd244e31e959362c558a6c714f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a6ccd60fd244e31e959362c558a6c714f">smtc_modem_set_dm_user_data</a> (const uint8_t user_data[<a class="el" href="smtc__modem__api_8h.html#a6713a6e29cdd3a2abdf94e8b8cc8ef06">SMTC_MODEM_DM_USER_DATA_LENGTH</a>])</td></tr>
<tr class="memdesc:a6ccd60fd244e31e959362c558a6c714f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set user-specific data to be reported by Device Management frames.  <a href="smtc__modem__api_8h.html#a6ccd60fd244e31e959362c558a6c714f">More...</a><br /></td></tr>
<tr class="separator:a6ccd60fd244e31e959362c558a6c714f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0f9d794f44c4867f7d80f9949d2d971"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#ac0f9d794f44c4867f7d80f9949d2d971">smtc_modem_get_dm_user_data</a> (uint8_t user_data[<a class="el" href="smtc__modem__api_8h.html#a6713a6e29cdd3a2abdf94e8b8cc8ef06">SMTC_MODEM_DM_USER_DATA_LENGTH</a>])</td></tr>
<tr class="memdesc:ac0f9d794f44c4867f7d80f9949d2d971"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get user-specific data to be reported by Device Management frames.  <a href="smtc__modem__api_8h.html#ac0f9d794f44c4867f7d80f9949d2d971">More...</a><br /></td></tr>
<tr class="separator:ac0f9d794f44c4867f7d80f9949d2d971"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae312e096d0cbf962c57544ffe35cd127"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#ae312e096d0cbf962c57544ffe35cd127">smtc_modem_join_network</a> (uint8_t stack_id)</td></tr>
<tr class="memdesc:ae312e096d0cbf962c57544ffe35cd127"><td class="mdescLeft">&#160;</td><td class="mdescRight">Join the network.  <a href="smtc__modem__api_8h.html#ae312e096d0cbf962c57544ffe35cd127">More...</a><br /></td></tr>
<tr class="separator:ae312e096d0cbf962c57544ffe35cd127"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a501d4b5a0002254e1cd56d3131427d73"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a501d4b5a0002254e1cd56d3131427d73">smtc_modem_leave_network</a> (uint8_t stack_id)</td></tr>
<tr class="memdesc:a501d4b5a0002254e1cd56d3131427d73"><td class="mdescLeft">&#160;</td><td class="mdescRight">Leave an already joined network or cancels on ongoing join process.  <a href="smtc__modem__api_8h.html#a501d4b5a0002254e1cd56d3131427d73">More...</a><br /></td></tr>
<tr class="separator:a501d4b5a0002254e1cd56d3131427d73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a64f3a9b7a5579a63379eb4fb8b6864b8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a64f3a9b7a5579a63379eb4fb8b6864b8">smtc_modem_suspend_radio_communications</a> (bool suspend)</td></tr>
<tr class="memdesc:a64f3a9b7a5579a63379eb4fb8b6864b8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Suspend the radio communications initiated by the modem.  <a href="smtc__modem__api_8h.html#a64f3a9b7a5579a63379eb4fb8b6864b8">More...</a><br /></td></tr>
<tr class="separator:a64f3a9b7a5579a63379eb4fb8b6864b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a88035c360d5f9e46efa090db776d4d38"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a88035c360d5f9e46efa090db776d4d38">smtc_modem_get_next_tx_max_payload</a> (uint8_t stack_id, uint8_t *tx_max_payload_size)</td></tr>
<tr class="memdesc:a88035c360d5f9e46efa090db776d4d38"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the maximum payload size that can be used for the next uplink.  <a href="smtc__modem__api_8h.html#a88035c360d5f9e46efa090db776d4d38">More...</a><br /></td></tr>
<tr class="separator:a88035c360d5f9e46efa090db776d4d38"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1998c842809ba8370cbfe012b04b2e83"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a1998c842809ba8370cbfe012b04b2e83">smtc_modem_request_uplink</a> (uint8_t stack_id, uint8_t fport, bool confirmed, const uint8_t *payload, uint8_t payload_length)</td></tr>
<tr class="memdesc:a1998c842809ba8370cbfe012b04b2e83"><td class="mdescLeft">&#160;</td><td class="mdescRight">Request a LoRaWAN uplink.  <a href="smtc__modem__api_8h.html#a1998c842809ba8370cbfe012b04b2e83">More...</a><br /></td></tr>
<tr class="separator:a1998c842809ba8370cbfe012b04b2e83"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5129aa2d59ddaa67cfa99a0516efbf35"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a5129aa2d59ddaa67cfa99a0516efbf35">smtc_modem_request_emergency_uplink</a> (uint8_t stack_id, uint8_t fport, bool confirmed, const uint8_t *payload, uint8_t payload_length)</td></tr>
<tr class="memdesc:a5129aa2d59ddaa67cfa99a0516efbf35"><td class="mdescLeft">&#160;</td><td class="mdescRight">Request an immediate LoRaWAN uplink.  <a href="smtc__modem__api_8h.html#a5129aa2d59ddaa67cfa99a0516efbf35">More...</a><br /></td></tr>
<tr class="separator:a5129aa2d59ddaa67cfa99a0516efbf35"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac67ad518b00e5c47aaf7cb32f074b1ce"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#ac67ad518b00e5c47aaf7cb32f074b1ce">smtc_modem_file_upload_init</a> (uint8_t stack_id, uint8_t index, <a class="el" href="smtc__modem__api_8h.html#ad4c45fe9506a5c78ac277dd0d356b2c6">smtc_modem_file_upload_cipher_mode_t</a> cipher_mode, const uint8_t *file, uint16_t file_length, uint32_t average_delay_s)</td></tr>
<tr class="memdesc:ac67ad518b00e5c47aaf7cb32f074b1ce"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create and initialize a file upload session.  <a href="smtc__modem__api_8h.html#ac67ad518b00e5c47aaf7cb32f074b1ce">More...</a><br /></td></tr>
<tr class="separator:ac67ad518b00e5c47aaf7cb32f074b1ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a89c9c4f675c3da81c8751ea663eefde6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a89c9c4f675c3da81c8751ea663eefde6">smtc_modem_file_upload_start</a> (uint8_t stack_id)</td></tr>
<tr class="memdesc:a89c9c4f675c3da81c8751ea663eefde6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Start the file upload towards the DAS.  <a href="smtc__modem__api_8h.html#a89c9c4f675c3da81c8751ea663eefde6">More...</a><br /></td></tr>
<tr class="separator:a89c9c4f675c3da81c8751ea663eefde6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a66dbddaf556a740b490e5db93c6a7494"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a66dbddaf556a740b490e5db93c6a7494">smtc_modem_file_upload_reset</a> (uint8_t stack_id)</td></tr>
<tr class="memdesc:a66dbddaf556a740b490e5db93c6a7494"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reset the file upload session.  <a href="smtc__modem__api_8h.html#a66dbddaf556a740b490e5db93c6a7494">More...</a><br /></td></tr>
<tr class="separator:a66dbddaf556a740b490e5db93c6a7494"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7fecd2b206437cdc9d105750541a078d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a7fecd2b206437cdc9d105750541a078d">smtc_modem_stream_init</a> (uint8_t stack_id, uint8_t fport, <a class="el" href="smtc__modem__api_8h.html#a4bbaabd919974271b85baf6285250c9f">smtc_modem_stream_cipher_mode_t</a> cipher_mode)</td></tr>
<tr class="memdesc:a7fecd2b206437cdc9d105750541a078d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create and initialize a data stream.  <a href="smtc__modem__api_8h.html#a7fecd2b206437cdc9d105750541a078d">More...</a><br /></td></tr>
<tr class="separator:a7fecd2b206437cdc9d105750541a078d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62ee39bc0e8d159eaa2d87dd4e676d16"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a62ee39bc0e8d159eaa2d87dd4e676d16">smtc_modem_stream_add_data</a> (uint8_t stack_id, uint8_t fport, const uint8_t *data, uint8_t len)</td></tr>
<tr class="memdesc:a62ee39bc0e8d159eaa2d87dd4e676d16"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add data to the stream.  <a href="smtc__modem__api_8h.html#a62ee39bc0e8d159eaa2d87dd4e676d16">More...</a><br /></td></tr>
<tr class="separator:a62ee39bc0e8d159eaa2d87dd4e676d16"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f5e369b410828fbea0c847bdb8ab7ef"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a7f5e369b410828fbea0c847bdb8ab7ef">smtc_modem_stream_status</a> (uint8_t stack_id, uint8_t fport, uint16_t *pending, uint16_t *free)</td></tr>
<tr class="memdesc:a7f5e369b410828fbea0c847bdb8ab7ef"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the current stream status.  <a href="smtc__modem__api_8h.html#a7f5e369b410828fbea0c847bdb8ab7ef">More...</a><br /></td></tr>
<tr class="separator:a7f5e369b410828fbea0c847bdb8ab7ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a56d7e1f5f1178150b28f455076bc79ab"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a56d7e1f5f1178150b28f455076bc79ab">smtc_modem_set_certification_mode</a> (uint8_t stack_id, bool enable)</td></tr>
<tr class="memdesc:a56d7e1f5f1178150b28f455076bc79ab"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable / disable the certification mode.  <a href="smtc__modem__api_8h.html#a56d7e1f5f1178150b28f455076bc79ab">More...</a><br /></td></tr>
<tr class="separator:a56d7e1f5f1178150b28f455076bc79ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4909027c82b7fed6821866093e84f38a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a4909027c82b7fed6821866093e84f38a">smtc_modem_get_certification_mode</a> (uint8_t stack_id, bool *enable)</td></tr>
<tr class="memdesc:a4909027c82b7fed6821866093e84f38a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the current state of the certification mode.  <a href="smtc__modem__api_8h.html#a4909027c82b7fed6821866093e84f38a">More...</a><br /></td></tr>
<tr class="separator:a4909027c82b7fed6821866093e84f38a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3637bd9db8914d00f066f867e50212da"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a3637bd9db8914d00f066f867e50212da">smtc_modem_set_connection_timeout_thresholds</a> (uint8_t stack_id, uint16_t nb_of_uplinks_before_network_controlled, uint16_t nb_of_uplinks_before_reset)</td></tr>
<tr class="memdesc:a3637bd9db8914d00f066f867e50212da"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the connection timeout thresholds.  <a href="smtc__modem__api_8h.html#a3637bd9db8914d00f066f867e50212da">More...</a><br /></td></tr>
<tr class="separator:a3637bd9db8914d00f066f867e50212da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac884f1635d75951015ae2ede72b3575e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#ac884f1635d75951015ae2ede72b3575e">smtc_modem_get_connection_timeout_thresholds</a> (uint8_t stack_id, uint16_t *nb_of_uplinks_before_network_controlled, uint16_t *nb_of_uplinks_before_reset)</td></tr>
<tr class="memdesc:ac884f1635d75951015ae2ede72b3575e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the configured connection timeout thresholds.  <a href="smtc__modem__api_8h.html#ac884f1635d75951015ae2ede72b3575e">More...</a><br /></td></tr>
<tr class="separator:ac884f1635d75951015ae2ede72b3575e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb864a58ed305558e2e4a92e76d38ca3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#acb864a58ed305558e2e4a92e76d38ca3">smtc_modem_get_current_connection_timeout</a> (uint8_t stack_id, uint16_t *nb_of_uplinks_before_network_controlled, uint16_t *nb_of_uplinks_before_reset)</td></tr>
<tr class="memdesc:acb864a58ed305558e2e4a92e76d38ca3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the current status of the connection timeouts.  <a href="smtc__modem__api_8h.html#acb864a58ed305558e2e4a92e76d38ca3">More...</a><br /></td></tr>
<tr class="separator:acb864a58ed305558e2e4a92e76d38ca3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abdc5cb14954646069fa1cfaffbd84b3a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#abdc5cb14954646069fa1cfaffbd84b3a">smtc_modem_get_duty_cycle_status</a> (int32_t *duty_cycle_status_ms)</td></tr>
<tr class="memdesc:abdc5cb14954646069fa1cfaffbd84b3a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the current status of the duty cycle.  <a href="smtc__modem__api_8h.html#abdc5cb14954646069fa1cfaffbd84b3a">More...</a><br /></td></tr>
<tr class="separator:abdc5cb14954646069fa1cfaffbd84b3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a89e6a844fdcb49540504d41d8c803c5c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a89e6a844fdcb49540504d41d8c803c5c">smtc_modem_suspend_radio_access</a> (void)</td></tr>
<tr class="memdesc:a89e6a844fdcb49540504d41d8c803c5c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Prevent the stack from accessing the radio.  <a href="smtc__modem__api_8h.html#a89e6a844fdcb49540504d41d8c803c5c">More...</a><br /></td></tr>
<tr class="separator:a89e6a844fdcb49540504d41d8c803c5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97ff2f38ad3823d15ffb58fdc7b333fa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a97ff2f38ad3823d15ffb58fdc7b333fa">smtc_modem_resume_radio_access</a> (void)</td></tr>
<tr class="memdesc:a97ff2f38ad3823d15ffb58fdc7b333fa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allow the stack to get access to the radio.  <a href="smtc__modem__api_8h.html#a97ff2f38ad3823d15ffb58fdc7b333fa">More...</a><br /></td></tr>
<tr class="separator:a97ff2f38ad3823d15ffb58fdc7b333fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a912c0d5c39113b5ac880e460ed178bfb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a912c0d5c39113b5ac880e460ed178bfb">smtc_modem_set_network_type</a> (uint8_t stack_id, bool network_type)</td></tr>
<tr class="memdesc:a912c0d5c39113b5ac880e460ed178bfb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configure network type to private or public.  <a href="smtc__modem__api_8h.html#a912c0d5c39113b5ac880e460ed178bfb">More...</a><br /></td></tr>
<tr class="separator:a912c0d5c39113b5ac880e460ed178bfb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe142674f451f61af35dc98835b4cd2a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#afe142674f451f61af35dc98835b4cd2a">smtc_modem_get_network_type</a> (uint8_t stack_id, bool *network_type)</td></tr>
<tr class="memdesc:afe142674f451f61af35dc98835b4cd2a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the configured network type.  <a href="smtc__modem__api_8h.html#afe142674f451f61af35dc98835b4cd2a">More...</a><br /></td></tr>
<tr class="separator:afe142674f451f61af35dc98835b4cd2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac6c96fdd3ba1a05abb87ca494385b34"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#aac6c96fdd3ba1a05abb87ca494385b34">smtc_modem_set_lbt_configuration</a> (uint8_t stack_id, uint32_t listen_duration_ms, int16_t threshold_dbm, uint32_t bw_hz)</td></tr>
<tr class="memdesc:aac6c96fdd3ba1a05abb87ca494385b34"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configure the LBT feature (Listen Before Talk)  <a href="smtc__modem__api_8h.html#aac6c96fdd3ba1a05abb87ca494385b34">More...</a><br /></td></tr>
<tr class="separator:aac6c96fdd3ba1a05abb87ca494385b34"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad489102221c73eeb30980d20f6d48dc8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#ad489102221c73eeb30980d20f6d48dc8">smtc_modem_get_lbt_configuration</a> (uint8_t stack_id, uint32_t *listen_duration_ms, int16_t *threshold_dbm, uint32_t *bw_hz)</td></tr>
<tr class="memdesc:ad489102221c73eeb30980d20f6d48dc8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the configured LBT (Listen Before Talk)  <a href="smtc__modem__api_8h.html#ad489102221c73eeb30980d20f6d48dc8">More...</a><br /></td></tr>
<tr class="separator:ad489102221c73eeb30980d20f6d48dc8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe170e1b36143016e60c8c5c834628ed"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#abe170e1b36143016e60c8c5c834628ed">smtc_modem_start_lbt</a> (uint8_t stack_id)</td></tr>
<tr class="memdesc:abe170e1b36143016e60c8c5c834628ed"><td class="mdescLeft">&#160;</td><td class="mdescRight">Start LBT feature (Listen Before Talk)  <a href="smtc__modem__api_8h.html#abe170e1b36143016e60c8c5c834628ed">More...</a><br /></td></tr>
<tr class="separator:abe170e1b36143016e60c8c5c834628ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45eb99ffebded3d7ba24fb6a69aa38d2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a45eb99ffebded3d7ba24fb6a69aa38d2">smtc_modem_stop_lbt</a> (uint8_t stack_id)</td></tr>
<tr class="memdesc:a45eb99ffebded3d7ba24fb6a69aa38d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stop LBT feature (Listen Before Talk)  <a href="smtc__modem__api_8h.html#a45eb99ffebded3d7ba24fb6a69aa38d2">More...</a><br /></td></tr>
<tr class="separator:a45eb99ffebded3d7ba24fb6a69aa38d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afdd446b317f4bc7252f5405fc519814d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#afdd446b317f4bc7252f5405fc519814d">smtc_modem_set_nb_trans</a> (uint8_t stack_id, uint8_t nb_trans)</td></tr>
<tr class="memdesc:afdd446b317f4bc7252f5405fc519814d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the number of transmissions (nb_trans) in case of unconfirmed uplink.  <a href="smtc__modem__api_8h.html#afdd446b317f4bc7252f5405fc519814d">More...</a><br /></td></tr>
<tr class="separator:afdd446b317f4bc7252f5405fc519814d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adeaed75cc1008fe4ebc2f437ced3b674"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#adeaed75cc1008fe4ebc2f437ced3b674">smtc_modem_get_nb_trans</a> (uint8_t stack_id, uint8_t *nb_trans)</td></tr>
<tr class="memdesc:adeaed75cc1008fe4ebc2f437ced3b674"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the configured number of transmissions (nb_trans) in case of unconfirmed uplink.  <a href="smtc__modem__api_8h.html#adeaed75cc1008fe4ebc2f437ced3b674">More...</a><br /></td></tr>
<tr class="separator:adeaed75cc1008fe4ebc2f437ced3b674"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab83c360c17167c774c9c4f24d245b191"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#ab83c360c17167c774c9c4f24d245b191">smtc_modem_get_stream_rr</a> (uint8_t stack_id, uint8_t *stream_rr)</td></tr>
<tr class="memdesc:ab83c360c17167c774c9c4f24d245b191"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the configured stream redundancy radio (rr)  <a href="smtc__modem__api_8h.html#ab83c360c17167c774c9c4f24d245b191">More...</a><br /></td></tr>
<tr class="separator:ab83c360c17167c774c9c4f24d245b191"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a43db9685011f1893130e62576b938c3d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a43db9685011f1893130e62576b938c3d">smtc_modem_set_stream_redundancy_ratio</a> (uint8_t stack_id, uint8_t redundancy_ratio_percent)</td></tr>
<tr class="memdesc:a43db9685011f1893130e62576b938c3d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the stream redundancy ratio.  <a href="smtc__modem__api_8h.html#a43db9685011f1893130e62576b938c3d">More...</a><br /></td></tr>
<tr class="separator:a43db9685011f1893130e62576b938c3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f4f23007d565fd4c4214aacc2c09b12"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#a0f4f23007d565fd4c4214aacc2c09b12">smtc_modem_set_crystal_error</a> (uint32_t crystal_error_ppm)</td></tr>
<tr class="memdesc:a0f4f23007d565fd4c4214aacc2c09b12"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set modem crystal error.  <a href="smtc__modem__api_8h.html#a0f4f23007d565fd4c4214aacc2c09b12">More...</a><br /></td></tr>
<tr class="separator:a0f4f23007d565fd4c4214aacc2c09b12"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeae0359f49d45873111e0de13caec3d6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="smtc__modem__api_8h.html#aeae0359f49d45873111e0de13caec3d6">smtc_modem_get_crystal_error</a> (uint32_t *crystal_error_ppm)</td></tr>
<tr class="memdesc:aeae0359f49d45873111e0de13caec3d6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the modem crystal error.  <a href="smtc__modem__api_8h.html#aeae0359f49d45873111e0de13caec3d6">More...</a><br /></td></tr>
<tr class="separator:aeae0359f49d45873111e0de13caec3d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Generic Modem API description. </p>
<p>Revised BSD License Copyright Semtech Corporation 2020. All rights reserved.</p>
<p>Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:</p><ul>
<li>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</li>
<li>Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</li>
<li>Neither the name of the Semtech corporation nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.</li>
</ul>
<p>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SEMTECH CORPORATION BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. </p>
</div><h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="a868637adcb76838f2191a858942a3922"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a868637adcb76838f2191a858942a3922">&#9670;&nbsp;</a></span>smtc_modem_adr_profile_e</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="smtc__modem__api_8h.html#a868637adcb76838f2191a858942a3922">smtc_modem_adr_profile_e</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Modem Datarate Profiles. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a868637adcb76838f2191a858942a3922af58f77886527c799627285efc7b87ea6"></a>SMTC_MODEM_ADR_PROFILE_NETWORK_CONTROLLED&#160;</td><td class="fielddoc"><p>Network Server controlled for static devices. </p>
</td></tr>
<tr><td class="fieldname"><a id="a868637adcb76838f2191a858942a3922a2e3e3e7961336c7d9887a0c58ad9645d"></a>SMTC_MODEM_ADR_PROFILE_MOBILE_LONG_RANGE&#160;</td><td class="fielddoc"><p>Long range distribution for mobile devices. </p>
</td></tr>
<tr><td class="fieldname"><a id="a868637adcb76838f2191a858942a3922a6dcae76dfc1d5055141021c81a0c006b"></a>SMTC_MODEM_ADR_PROFILE_MOBILE_LOW_POWER&#160;</td><td class="fielddoc"><p>Low power distribution for mobile devices. </p>
</td></tr>
<tr><td class="fieldname"><a id="a868637adcb76838f2191a858942a3922aa16fc599d480d3762b2ccf96379d0c3c"></a>SMTC_MODEM_ADR_PROFILE_CUSTOM&#160;</td><td class="fielddoc"><p>User defined distribution. </p>
</td></tr>
</table>

</div>
</div>
<a id="ab682a2a05b0b667114a96962370b154c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab682a2a05b0b667114a96962370b154c">&#9670;&nbsp;</a></span>smtc_modem_class_e</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="smtc__modem__api_8h.html#ab682a2a05b0b667114a96962370b154c">smtc_modem_class_e</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Modem class enumeration. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ab682a2a05b0b667114a96962370b154ca3e9ed89ca54853930d6b605a7afe9ac5"></a>SMTC_MODEM_CLASS_A&#160;</td><td class="fielddoc"><p>Modem class A. </p>
</td></tr>
<tr><td class="fieldname"><a id="ab682a2a05b0b667114a96962370b154cae291d7ed6fb8a46a5affb23e4d9723a6"></a>SMTC_MODEM_CLASS_C&#160;</td><td class="fielddoc"><p>Modem class C. </p>
</td></tr>
</table>

</div>
</div>
<a id="afe3f0d8569065d33866b8be3e0d96c63"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afe3f0d8569065d33866b8be3e0d96c63">&#9670;&nbsp;</a></span>smtc_modem_file_upload_cipher_mode_e</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="smtc__modem__api_8h.html#afe3f0d8569065d33866b8be3e0d96c63">smtc_modem_file_upload_cipher_mode_e</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Cipher mode for file upload service. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="afe3f0d8569065d33866b8be3e0d96c63a85849b62c52857e860b0017a81b76400"></a>SMTC_MODEM_FILE_UPLOAD_NO_CIPHER&#160;</td><td class="fielddoc"><p>Do not encrypt file. </p>
</td></tr>
<tr><td class="fieldname"><a id="afe3f0d8569065d33866b8be3e0d96c63a00bafc555806c8d1cd2928468a247e9e"></a>SMTC_MODEM_FILE_UPLOAD_AES_WITH_APPSKEY&#160;</td><td class="fielddoc"><p>Encrypt file using AES with appskey. </p>
</td></tr>
</table>

</div>
</div>
<a id="a28665f12d1a9220810ec9f87a5cf1620"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a28665f12d1a9220810ec9f87a5cf1620">&#9670;&nbsp;</a></span>smtc_modem_return_code_e</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="smtc__modem__api_8h.html#a28665f12d1a9220810ec9f87a5cf1620">smtc_modem_return_code_e</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Modem Return Codes. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a28665f12d1a9220810ec9f87a5cf1620ab834a5bb2ce6d97c2831fe3d71103c14"></a>RC_OK&#160;</td><td class="fielddoc"><p>command executed without errors </p>
</td></tr>
<tr><td class="fieldname"><a id="a28665f12d1a9220810ec9f87a5cf1620a44722346ed4d9697eafefccbc540765d"></a>RC_UNKNOWN&#160;</td><td class="fielddoc"><p>command code unknown </p>
</td></tr>
<tr><td class="fieldname"><a id="a28665f12d1a9220810ec9f87a5cf1620ab160a5d4159a90180d6922bf65931f7b"></a>RC_NOT_IMPLEMENTED&#160;</td><td class="fielddoc"><p>command not yet implemented </p>
</td></tr>
<tr><td class="fieldname"><a id="a28665f12d1a9220810ec9f87a5cf1620a37c97cd2e742eb38b2d14ea58356181a"></a>RC_NOT_INIT&#160;</td><td class="fielddoc"><p>command not initialized </p>
</td></tr>
<tr><td class="fieldname"><a id="a28665f12d1a9220810ec9f87a5cf1620a72631ecb3362f3f7c33cfee4251a2b8a"></a>RC_INVALID&#160;</td><td class="fielddoc"><p>command parameters invalid </p>
</td></tr>
<tr><td class="fieldname"><a id="a28665f12d1a9220810ec9f87a5cf1620a869dd46c2d082bad131e39c2052f213f"></a>RC_BUSY&#160;</td><td class="fielddoc"><p>command cannot be executed now </p>
</td></tr>
<tr><td class="fieldname"><a id="a28665f12d1a9220810ec9f87a5cf1620a827565d735c8517ed5079c5a93b513b5"></a>RC_FAIL&#160;</td><td class="fielddoc"><p>command execution failed </p>
</td></tr>
<tr><td class="fieldname"><a id="a28665f12d1a9220810ec9f87a5cf1620a4b9a7df2f3e66e38b9a0b27dfce73c0a"></a>RC_BAD_FORMAT&#160;</td><td class="fielddoc"><p>format check failed </p>
</td></tr>
<tr><td class="fieldname"><a id="a28665f12d1a9220810ec9f87a5cf1620a781b7f097df41705b8d1f4a5932a08bb"></a>RC_BAD_CRC&#160;</td><td class="fielddoc"><p>crc check failed </p>
</td></tr>
<tr><td class="fieldname"><a id="a28665f12d1a9220810ec9f87a5cf1620a7a62074e4c5d4226fe77d3ca127cce9f"></a>RC_BAD_SIGNATURE&#160;</td><td class="fielddoc"><p>signature verification failed </p>
</td></tr>
<tr><td class="fieldname"><a id="a28665f12d1a9220810ec9f87a5cf1620ab6d30e486bf7faabc78644ed63050e4a"></a>RC_BAD_SIZE&#160;</td><td class="fielddoc"><p>size check failed </p>
</td></tr>
<tr><td class="fieldname"><a id="a28665f12d1a9220810ec9f87a5cf1620afac262a9eea4e4288bfce1ac356da883"></a>RC_FRAME_ERROR&#160;</td><td class="fielddoc"><p>serial port framing error </p>
</td></tr>
<tr><td class="fieldname"><a id="a28665f12d1a9220810ec9f87a5cf1620ae2789f1ef47e6e1a8ec663688463f3bf"></a>RC_NO_TIME&#160;</td><td class="fielddoc"><p>no time available, either via network synchronization or set by the host </p>
</td></tr>
</table>

</div>
</div>
<a id="a4a85a18d018df88ec6ff03d56e3c9622"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4a85a18d018df88ec6ff03d56e3c9622">&#9670;&nbsp;</a></span>smtc_modem_stream_cipher_mode_e</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="smtc__modem__api_8h.html#a4a85a18d018df88ec6ff03d56e3c9622">smtc_modem_stream_cipher_mode_e</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Cipher mode for stream service. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a4a85a18d018df88ec6ff03d56e3c9622af03652db409d109457790d25f95c2497"></a>SMTC_MODEM_STREAM_NO_CIPHER&#160;</td><td class="fielddoc"><p>Do not encrypt stream. </p>
</td></tr>
<tr><td class="fieldname"><a id="a4a85a18d018df88ec6ff03d56e3c9622af65c7eff3ec453d088ebed14894fc032"></a>SMTC_MODEM_STREAM_AES_WITH_APPSKEY&#160;</td><td class="fielddoc"><p>Encrypt stream using AES with appskey. </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ad820d2f52fa064f19b215ad7052ce3e4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad820d2f52fa064f19b215ad7052ce3e4">&#9670;&nbsp;</a></span>smtc_modem_clear_alarm_timer()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_clear_alarm_timer </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Stop and clear alarm timer. </p>
<dl class="section remark"><dt>Remarks</dt><dd>If there is no alarm running, the function will return <a class="el" href="smtc__modem__api_8h.html#a28665f12d1a9220810ec9f87a5cf1620a37c97cd2e742eb38b2d14ea58356181a">RC_NOT_INIT</a></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="af6794d6981ceaa480a50986f2e143a6d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af6794d6981ceaa480a50986f2e143a6d">&#9670;&nbsp;</a></span>smtc_modem_factory_reset()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_factory_reset </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reset the modem to its original state. </p>
<dl class="section remark"><dt>Remarks</dt><dd>In addition to the MCU reset all persistent settings are reset back to their factory state</dd></dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="ac67ad518b00e5c47aaf7cb32f074b1ce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac67ad518b00e5c47aaf7cb32f074b1ce">&#9670;&nbsp;</a></span>smtc_modem_file_upload_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_file_upload_init </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="smtc__modem__api_8h.html#ad4c45fe9506a5c78ac277dd0d356b2c6">smtc_modem_file_upload_cipher_mode_t</a>&#160;</td>
          <td class="paramname"><em>cipher_mode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const uint8_t *&#160;</td>
          <td class="paramname"><em>file</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>file_length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>average_delay_s</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create and initialize a file upload session. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">index</td><td>The index on which the upload is done </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">cipher_mode</td><td>The cipher mode </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">file</td><td>The file buffer </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">file_length</td><td>The file size </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">average_delay_s</td><td>The minimal delay between two file upload fragments, in seconds (from the end of an uplink to the start of the next one)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a66dbddaf556a740b490e5db93c6a7494"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a66dbddaf556a740b490e5db93c6a7494">&#9670;&nbsp;</a></span>smtc_modem_file_upload_reset()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_file_upload_reset </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reset the file upload session. </p>
<dl class="section remark"><dt>Remarks</dt><dd>If there is an ongoing upload, this function will stop it</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a89c9c4f675c3da81c8751ea663eefde6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a89c9c4f675c3da81c8751ea663eefde6">&#9670;&nbsp;</a></span>smtc_modem_file_upload_start()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_file_upload_start </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Start the file upload towards the DAS. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a41781c09d149ed18b7fce11b10df6f9a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a41781c09d149ed18b7fce11b10df6f9a">&#9670;&nbsp;</a></span>smtc_modem_get_adr_custom_data()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_get_adr_custom_data </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>adr_custom_data</em>[SMTC_MODEM_CUSTOM_ADR_DATA_LENGTH]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the configured custom ADR profile data. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">adr_custom_data</td><td>The definition of the custom ADR profile</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="ac028ab1b3c44f7f1f1771b65d588925d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac028ab1b3c44f7f1f1771b65d588925d">&#9670;&nbsp;</a></span>smtc_modem_get_adr_profile()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_get_adr_profile </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="smtc__modem__api_8h.html#a8e939ad0a2583987746c6f52e32cba67">smtc_modem_adr_profile_t</a> *&#160;</td>
          <td class="paramname"><em>adr_profile</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the current ADR profile. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">adr_profile</td><td>The current ADR profile</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="ab18b378ebeede432ad3e10f349278a41"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab18b378ebeede432ad3e10f349278a41">&#9670;&nbsp;</a></span>smtc_modem_get_alarm_remaining_time()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_get_alarm_remaining_time </td>
          <td>(</td>
          <td class="paramtype">uint32_t *&#160;</td>
          <td class="paramname"><em>remaining_time_in_s</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the number of seconds remaining before the alarm triggers an event. </p>
<dl class="section remark"><dt>Remarks</dt><dd>If there is no alarm running, the number of seconds remaining is 0, and return code is RC_NOT_INIT.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">remaining_time_in_s</td><td>The number of seconds remaining before the alarm triggers an event</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="ac6f517cb949e3a7b2dc6e52ae3730db2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac6f517cb949e3a7b2dc6e52ae3730db2">&#9670;&nbsp;</a></span>smtc_modem_get_alc_sync_fport()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_get_alc_sync_fport </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>alc_sync_fport</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get Application Layer Clock Synchronization (ALCSync) service FPort. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">alc_sync_fport</td><td>The ALCSync FPort</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="aef01f7d4b56feb08d988ebfef617c649"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef01f7d4b56feb08d988ebfef617c649">&#9670;&nbsp;</a></span>smtc_modem_get_alcsync_mode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_get_alcsync_mode </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>mode</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the current state of the Application Layer Clock Synchronization (ALCSync) service. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">mode</td><td>The current ALCSync configuration</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a8a9450d1839ca12f62903f4add65b00d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8a9450d1839ca12f62903f4add65b00d">&#9670;&nbsp;</a></span>smtc_modem_get_available_datarates()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_get_available_datarates </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t *&#160;</td>
          <td class="paramname"><em>available_datarates_mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the current available Datarate in regards of Uplink ChMash and DwellTime. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">available_datarates_mask</td><td>The available datarates, described in a bitfield</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a4909027c82b7fed6821866093e84f38a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4909027c82b7fed6821866093e84f38a">&#9670;&nbsp;</a></span>smtc_modem_get_certification_mode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_get_certification_mode </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool *&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the current state of the certification mode. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">enable</td><td>The certification mode state</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a6559056c141dde5dc8bc7fc7be233533"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6559056c141dde5dc8bc7fc7be233533">&#9670;&nbsp;</a></span>smtc_modem_get_charge()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_get_charge </td>
          <td>(</td>
          <td class="paramtype">uint32_t *&#160;</td>
          <td class="paramname"><em>charge_mah</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the total charge counter of the modem in mAh. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">charge_mah</td><td>The accumulated charge in mAh</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="aa7a4218f00a5f9d1ae32f5d42fe311b3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa7a4218f00a5f9d1ae32f5d42fe311b3">&#9670;&nbsp;</a></span>smtc_modem_get_class()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_get_class </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="smtc__modem__api_8h.html#af365833c8df22cfc0c09be7da28b7026">smtc_modem_class_t</a> *&#160;</td>
          <td class="paramname"><em>lorawan_class</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the current LoRaWAN class. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">lorawan_class</td><td>The current LoRaWAN class</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="ac884f1635d75951015ae2ede72b3575e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac884f1635d75951015ae2ede72b3575e">&#9670;&nbsp;</a></span>smtc_modem_get_connection_timeout_thresholds()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_get_connection_timeout_thresholds </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t *&#160;</td>
          <td class="paramname"><em>nb_of_uplinks_before_network_controlled</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t *&#160;</td>
          <td class="paramname"><em>nb_of_uplinks_before_reset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the configured connection timeout thresholds. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">nb_of_uplinks_before_network_controlled</td><td>The number of uplinks without downlink before ADR profile switches to network controlled </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">nb_of_uplinks_before_reset</td><td>The number of uplinks without downlink before reset</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="aeae0359f49d45873111e0de13caec3d6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeae0359f49d45873111e0de13caec3d6">&#9670;&nbsp;</a></span>smtc_modem_get_crystal_error()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_get_crystal_error </td>
          <td>(</td>
          <td class="paramtype">uint32_t *&#160;</td>
          <td class="paramname"><em>crystal_error_ppm</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the modem crystal error. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">crystal_error_ppm</td><td>The crystal error in ppm</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="acb864a58ed305558e2e4a92e76d38ca3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acb864a58ed305558e2e4a92e76d38ca3">&#9670;&nbsp;</a></span>smtc_modem_get_current_connection_timeout()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_get_current_connection_timeout </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t *&#160;</td>
          <td class="paramname"><em>nb_of_uplinks_before_network_controlled</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t *&#160;</td>
          <td class="paramname"><em>nb_of_uplinks_before_reset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the current status of the connection timeouts. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">nb_of_uplinks_before_network_controlled</td><td>The number of remaining uplinks without downlink before ADR profile switches to network controlled </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">nb_of_uplinks_before_reset</td><td>The number of remaining uplinks without downlink before reset</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="ac35b956e1e6d026a6dbdf16ab7fc2222"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac35b956e1e6d026a6dbdf16ab7fc2222">&#9670;&nbsp;</a></span>smtc_modem_get_deveui()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_get_deveui </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>deveui</em>[SMTC_MODEM_EUI_LENGTH]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the DevEUI. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">deveui</td><td>The current DevEUI</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a94ea53f8b12a2072febba13ac6e78d70"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a94ea53f8b12a2072febba13ac6e78d70">&#9670;&nbsp;</a></span>smtc_modem_get_dm_fport()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_get_dm_fport </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>dm_fport</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the Device Management LoRaWAN FPort. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">dm_fport</td><td>The FPort on which the DM info is sent</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a5e26803a030e0a1ace484fecd8b107f6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5e26803a030e0a1ace484fecd8b107f6">&#9670;&nbsp;</a></span>smtc_modem_get_dm_info_fields()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_get_dm_info_fields </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>dm_fields_payload</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>dm_field_length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get DM info fields. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">dm_fields_payload</td><td>The DM fields (defined in <a class="el" href="group__SMTC__MODEM__DM__INFO__DEF.html">DM info fields codes</a>) </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">dm_field_length</td><td>The DM field length</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a00524059c55298c735ea5c1211d504b6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a00524059c55298c735ea5c1211d504b6">&#9670;&nbsp;</a></span>smtc_modem_get_dm_info_interval()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_get_dm_info_interval </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="smtc__modem__api_8h.html#aa74bbc8e8b31da7f77a9a9940f98d331">smtc_modem_dm_info_interval_format_t</a> *&#160;</td>
          <td class="paramname"><em>format</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>interval</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the interval between 2 DM info field messages. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">format</td><td>The reporting interval format </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">interval</td><td>The interval in unit defined in format</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="ac0f9d794f44c4867f7d80f9949d2d971"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac0f9d794f44c4867f7d80f9949d2d971">&#9670;&nbsp;</a></span>smtc_modem_get_dm_user_data()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_get_dm_user_data </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>user_data</em>[SMTC_MODEM_DM_USER_DATA_LENGTH]</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get user-specific data to be reported by Device Management frames. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">user_data</td><td>User-specific data</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="abdc5cb14954646069fa1cfaffbd84b3a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abdc5cb14954646069fa1cfaffbd84b3a">&#9670;&nbsp;</a></span>smtc_modem_get_duty_cycle_status()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_get_duty_cycle_status </td>
          <td>(</td>
          <td class="paramtype">int32_t *&#160;</td>
          <td class="paramname"><em>duty_cycle_status_ms</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the current status of the duty cycle. </p>
<dl class="section remark"><dt>Remarks</dt><dd>If the returned value is positive, it is the time still available. A negative value indicates the time to wait until band availability</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">duty_cycle_status_ms</td><td>The status of the duty cycle in milliseconds</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="aadbf482aa0249acd4c18dda44c613d80"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aadbf482aa0249acd4c18dda44c613d80">&#9670;&nbsp;</a></span>smtc_modem_get_event()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_get_event </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>count</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t *&#160;</td>
          <td class="paramname"><em>data_length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>pending_count</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the modem event. </p>
<dl class="section remark"><dt>Remarks</dt><dd>This command can be used to retrieve pending events from the modem.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">type</td><td>The event type (This parameter can be a value of <a class="el" href="group__SMTC__MODEM__EVENT__DEF.html">Event codes definitions</a>) </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">count</td><td>The number of event(s) of this type, including missed event(s), in case of overrun </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">data</td><td>The event specific data </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">data_length</td><td>The event specific data length </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">pending_count</td><td>The number of pending event(s)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a0b013a63da0912f59fa84097318dbce8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0b013a63da0912f59fa84097318dbce8">&#9670;&nbsp;</a></span>smtc_modem_get_joineui()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_get_joineui </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>joineui</em>[SMTC_MODEM_EUI_LENGTH]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the JoinEUI. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">joineui</td><td>The current JoinEUI</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="ad489102221c73eeb30980d20f6d48dc8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad489102221c73eeb30980d20f6d48dc8">&#9670;&nbsp;</a></span>smtc_modem_get_lbt_configuration()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_get_lbt_configuration </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t *&#160;</td>
          <td class="paramname"><em>listen_duration_ms</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int16_t *&#160;</td>
          <td class="paramname"><em>threshold_dbm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t *&#160;</td>
          <td class="paramname"><em>bw_hz</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the configured LBT (Listen Before Talk) </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">listen_duration_ms</td><td>The current listen duration in ms </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">threshold_dbm</td><td>The current lbt threshold in dbm </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">bw_hz</td><td>The current lbt bandwith in hertz</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="adeaed75cc1008fe4ebc2f437ced3b674"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adeaed75cc1008fe4ebc2f437ced3b674">&#9670;&nbsp;</a></span>smtc_modem_get_nb_trans()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_get_nb_trans </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>nb_trans</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the configured number of transmissions (nb_trans) in case of unconfirmed uplink. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">nb_trans</td><td>The number of transmissions</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="afe142674f451f61af35dc98835b4cd2a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afe142674f451f61af35dc98835b4cd2a">&#9670;&nbsp;</a></span>smtc_modem_get_network_type()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_get_network_type </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool *&#160;</td>
          <td class="paramname"><em>network_type</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the configured network type. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">network_type</td><td>The configuration to be applied (true: public network / false: private network)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a88035c360d5f9e46efa090db776d4d38"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a88035c360d5f9e46efa090db776d4d38">&#9670;&nbsp;</a></span>smtc_modem_get_next_tx_max_payload()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_get_next_tx_max_payload </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>tx_max_payload_size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the maximum payload size that can be used for the next uplink. </p>
<dl class="section remark"><dt>Remarks</dt><dd>This value depends on the LoRaWAN regional parameters for the next transmission using the current data rate</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">tx_max_payload_size</td><td>The maximum payload size in byte</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="ad2230f2b6007f89d7b3527961278c2b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad2230f2b6007f89d7b3527961278c2b5">&#9670;&nbsp;</a></span>smtc_modem_get_region()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_get_region </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="smtc__modem__api_8h.html#af86dcb15a5363575e5eeb3db1f14d6ff">smtc_modem_region_t</a> *&#160;</td>
          <td class="paramname"><em>region</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the current LoRaWAN region. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">region</td><td>The current LoRaWAN region</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a7483685ece7e9d353d152921c091b7a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7483685ece7e9d353d152921c091b7a9">&#9670;&nbsp;</a></span>smtc_modem_get_rx_power_offset_db()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_get_rx_power_offset_db </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int16_t *&#160;</td>
          <td class="paramname"><em>rx_offset_db</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the Rx power offset in dB. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">rx_offset_db</td><td>The Rx power offset in dB</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a411d9699a80d7559d5dd41a52ff1a777"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a411d9699a80d7559d5dd41a52ff1a777">&#9670;&nbsp;</a></span>smtc_modem_get_status()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_get_status </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="smtc__modem__api_8h.html#a9c5f04daad69bdc1d2459ca1db13ee52">smtc_modem_status_mask_t</a> *&#160;</td>
          <td class="paramname"><em>status_mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the modem status. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">status_mask</td><td>The modem status defined in <a class="el" href="smtc__modem__api_8h.html#a7060629b29cc2a3f22e183e8032d563d">smtc_modem_status_mask_e</a></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="ab83c360c17167c774c9c4f24d245b191"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab83c360c17167c774c9c4f24d245b191">&#9670;&nbsp;</a></span>smtc_modem_get_stream_rr()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_get_stream_rr </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>stream_rr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the configured stream redundancy radio (rr) </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">stream_rr</td><td>The stream redundancy ratio</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="ac6bb8d02b4515ca4de0260f7c56d551e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac6bb8d02b4515ca4de0260f7c56d551e">&#9670;&nbsp;</a></span>smtc_modem_get_time()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_get_time </td>
          <td>(</td>
          <td class="paramtype">uint32_t *&#160;</td>
          <td class="paramname"><em>gps_time_s</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get GPS epoch time. </p>
<dl class="section remark"><dt>Remarks</dt><dd>The returned time specifies the number of seconds elapsed since GPS epoch (00:00:00, Sunday 6th of January 1980). If the device is not yet synchronized to GPS time then the returned value is zero. In case of time wrapping, the time could be really equal to zero so the value is incremented of 1 to avoid 0</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">gps_time_s</td><td>The GPS time in seconds</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a032c85549cff5a84f9877d7e8feea96e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a032c85549cff5a84f9877d7e8feea96e">&#9670;&nbsp;</a></span>smtc_modem_get_tx_power_offset_db()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_get_tx_power_offset_db </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8_t *&#160;</td>
          <td class="paramname"><em>tx_pwr_offset_db</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the Tx power offset in dB. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">tx_pwr_offset_db</td><td>The Tx power offset in dB</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a734a1750ff3baba2327970b1e36cf606"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a734a1750ff3baba2327970b1e36cf606">&#9670;&nbsp;</a></span>smtc_modem_get_version()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_get_version </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="smtc__modem__api_8h.html#af3defb0e1dfb1d9026f8330a4ed39557">smtc_modem_version_t</a> *&#160;</td>
          <td class="paramname"><em>firmware_version</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="smtc__modem__api_8h.html#af3defb0e1dfb1d9026f8330a4ed39557">smtc_modem_version_t</a> *&#160;</td>
          <td class="paramname"><em>lorawan_version</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the firmware and the LoRaWAN versions. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">firmware_version</td><td>The firmware version </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">lorawan_version</td><td>The LoRaWAN version</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="ae312e096d0cbf962c57544ffe35cd127"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae312e096d0cbf962c57544ffe35cd127">&#9670;&nbsp;</a></span>smtc_modem_join_network()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_join_network </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Join the network. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a501d4b5a0002254e1cd56d3131427d73"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a501d4b5a0002254e1cd56d3131427d73">&#9670;&nbsp;</a></span>smtc_modem_leave_network()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_leave_network </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Leave an already joined network or cancels on ongoing join process. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a5129aa2d59ddaa67cfa99a0516efbf35"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5129aa2d59ddaa67cfa99a0516efbf35">&#9670;&nbsp;</a></span>smtc_modem_request_emergency_uplink()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_request_emergency_uplink </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>fport</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>confirmed</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const uint8_t *&#160;</td>
          <td class="paramname"><em>payload</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>payload_length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Request an immediate LoRaWAN uplink. </p>
<dl class="section remark"><dt>Remarks</dt><dd>It has higher priority than all other services and is not subject to duty cycle restrictions, if any </dd>
<dd>
LoRaWAN NbTrans parameter can be set in mobiles and custom ADR modes with <a class="el" href="smtc__modem__api_8h.html#afdd446b317f4bc7252f5405fc519814d">smtc_modem_set_nb_trans</a></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">fport</td><td>The LoRaWAN FPort on which the uplink is done </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">confirmed</td><td>The message type (true: confirmed, false: unconfirmed) </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">payload</td><td>The data to be sent </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">payload_length</td><td>The number of bytes from payload to be sent</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a499ee784cdf5f63b1b8588db0123200d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a499ee784cdf5f63b1b8588db0123200d">&#9670;&nbsp;</a></span>smtc_modem_request_single_dm_uplink()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_request_single_dm_uplink </td>
          <td>(</td>
          <td class="paramtype">const uint8_t *&#160;</td>
          <td class="paramname"><em>dm_fields_payload</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>dm_field_length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Request an immediate DM status. </p>
<dl class="section remark"><dt>Remarks</dt><dd>The content is indepandent from the configuration set with <a class="el" href="smtc__modem__api_8h.html#ab4837763ecc339a0a6a836040b6463a8">smtc_modem_set_dm_info_fields</a></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">dm_fields_payload</td><td>The DM fields (defined in <a class="el" href="group__SMTC__MODEM__DM__INFO__DEF.html">DM info fields codes</a>) </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">dm_field_length</td><td>The DM field length</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a1998c842809ba8370cbfe012b04b2e83"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1998c842809ba8370cbfe012b04b2e83">&#9670;&nbsp;</a></span>smtc_modem_request_uplink()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_request_uplink </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>fport</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>confirmed</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const uint8_t *&#160;</td>
          <td class="paramname"><em>payload</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>payload_length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Request a LoRaWAN uplink. </p>
<dl class="section remark"><dt>Remarks</dt><dd>LoRaWAN NbTrans parameter can be set in mobiles and custom ADR modes with <a class="el" href="smtc__modem__api_8h.html#afdd446b317f4bc7252f5405fc519814d">smtc_modem_set_nb_trans</a></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">fport</td><td>The LoRaWAN FPort on which the uplink is done </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">confirmed</td><td>The message type (true: confirmed, false: unconfirmed) </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">payload</td><td>The data to be sent </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">payload_length</td><td>The number of bytes from payload to be sent</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="ad7dba162eca443d021c3b247f48c16ee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad7dba162eca443d021c3b247f48c16ee">&#9670;&nbsp;</a></span>smtc_modem_reset()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_reset </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reset the modem. </p>
<dl class="section remark"><dt>Remarks</dt><dd>All transient state (including session information) will be lost - the modem needs to join the network again</dd></dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a927f65d89842bb0f37ae9b89ff115ef0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a927f65d89842bb0f37ae9b89ff115ef0">&#9670;&nbsp;</a></span>smtc_modem_reset_charge()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_reset_charge </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reset the total charge counter of the modem. </p>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a97ff2f38ad3823d15ffb58fdc7b333fa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a97ff2f38ad3823d15ffb58fdc7b333fa">&#9670;&nbsp;</a></span>smtc_modem_resume_radio_access()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_resume_radio_access </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Allow the stack to get access to the radio. </p>
<dl class="section remark"><dt>Remarks</dt><dd>The user must call this function after performing operations requiring a direct access to the radio (e.g. test modes). Otherwise, all stack-related tasks remain pending.</dd></dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a0ce81d645723b66c0197f11d9a281103"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0ce81d645723b66c0197f11d9a281103">&#9670;&nbsp;</a></span>smtc_modem_set_adr_profile()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_set_adr_profile </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="smtc__modem__api_8h.html#a8e939ad0a2583987746c6f52e32cba67">smtc_modem_adr_profile_t</a>&#160;</td>
          <td class="paramname"><em>adr_profile</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const uint8_t&#160;</td>
          <td class="paramname"><em>adr_custom_data</em>[SMTC_MODEM_CUSTOM_ADR_DATA_LENGTH]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the ADR profile. </p>
<dl class="section remark"><dt>Remarks</dt><dd>If <a class="el" href="smtc__modem__api_8h.html#a868637adcb76838f2191a858942a3922aa16fc599d480d3762b2ccf96379d0c3c">SMTC_MODEM_ADR_PROFILE_CUSTOM</a> is selected, custom data are taken into account</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">adr_profile</td><td>The ADR profile to be configured </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">adr_custom_data</td><td>The definition of the custom ADR profile</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="ae94eff2ff8ab76839fba983df6c35041"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae94eff2ff8ab76839fba983df6c35041">&#9670;&nbsp;</a></span>smtc_modem_set_alc_sync_fport()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_set_alc_sync_fport </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>alc_sync_fport</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set Application Layer Clock Synchronization (ALCSync) service FPort. </p>
<dl class="section remark"><dt>Remarks</dt><dd>An alc_sync_fport value of 0 or equal to DM FPort will encapsulate the ALCSync requests into DM frames, to be used with DAS ALCSync service.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">alc_sync_fport</td><td>The ALCSync FPort.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a2b00f9d2df223e5f9336d2266160883c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2b00f9d2df223e5f9336d2266160883c">&#9670;&nbsp;</a></span>smtc_modem_set_alcsync_mode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_set_alcsync_mode </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>mode</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enable / disable the Application Layer Clock Synchronization (ALCSync) service. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">mode</td><td>The ALCSync configuration to apply</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a56d7e1f5f1178150b28f455076bc79ab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a56d7e1f5f1178150b28f455076bc79ab">&#9670;&nbsp;</a></span>smtc_modem_set_certification_mode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_set_certification_mode </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enable / disable the certification mode. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">enable</td><td>The certification mode state (default: disabled)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a5e3f461177c5cc9c89fef9e9a052c5e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5e3f461177c5cc9c89fef9e9a052c5e9">&#9670;&nbsp;</a></span>smtc_modem_set_class()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_set_class </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="smtc__modem__api_8h.html#af365833c8df22cfc0c09be7da28b7026">smtc_modem_class_t</a>&#160;</td>
          <td class="paramname"><em>lorawan_class</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the LoRaWAN class. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">lorawan_class</td><td>The LoRaWAN class to be configured</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a3637bd9db8914d00f066f867e50212da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3637bd9db8914d00f066f867e50212da">&#9670;&nbsp;</a></span>smtc_modem_set_connection_timeout_thresholds()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_set_connection_timeout_thresholds </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>nb_of_uplinks_before_network_controlled</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>nb_of_uplinks_before_reset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the connection timeout thresholds. </p>
<dl class="section remark"><dt>Remarks</dt><dd>The value 0 deactivates the function </dd>
<dd>
It is recommended to have nb_of_uplinks_before_network_controlled smaller than nb_of_uplink_before_reset</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">nb_of_uplinks_before_network_controlled</td><td>The number of uplinks without downlink before ADR profile switches to network controlled </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">nb_of_uplinks_before_reset</td><td>The number of uplinks without downlink before reset</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a0f4f23007d565fd4c4214aacc2c09b12"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0f4f23007d565fd4c4214aacc2c09b12">&#9670;&nbsp;</a></span>smtc_modem_set_crystal_error()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_set_crystal_error </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>crystal_error_ppm</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set modem crystal error. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">crystal_error_ppm</td><td>The crystal error in ppm</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="ad2eeb2277a0542fa9851834f90924711"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad2eeb2277a0542fa9851834f90924711">&#9670;&nbsp;</a></span>smtc_modem_set_deveui()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_set_deveui </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const uint8_t&#160;</td>
          <td class="paramname"><em>deveui</em>[SMTC_MODEM_EUI_LENGTH]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the DevEUI. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">deveui</td><td>The DevEUI to be configured</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a101db5bda8332b5651c48d7f0abfb8d5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a101db5bda8332b5651c48d7f0abfb8d5">&#9670;&nbsp;</a></span>smtc_modem_set_dm_fport()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_set_dm_fport </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>dm_fport</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the Device Management LoRaWAN FPort. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">dm_fport</td><td>The FPort on which the DM info is sent. This value must be in the range [1:223]</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="ab4837763ecc339a0a6a836040b6463a8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab4837763ecc339a0a6a836040b6463a8">&#9670;&nbsp;</a></span>smtc_modem_set_dm_info_fields()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_set_dm_info_fields </td>
          <td>(</td>
          <td class="paramtype">const uint8_t *&#160;</td>
          <td class="paramname"><em>dm_fields_payload</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>dm_field_length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the DM info fields to be sent on a regular basis. </p>
<dl class="section remark"><dt>Remarks</dt><dd>The interval between two DM info field messages is defined with <a class="el" href="smtc__modem__api_8h.html#ad6b69d8f2b1efd81aec3e896bea39637">smtc_modem_set_dm_info_interval</a></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">dm_fields_payload</td><td>The DM fields (defined in <a class="el" href="group__SMTC__MODEM__DM__INFO__DEF.html">DM info fields codes</a>) </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">dm_field_length</td><td>The DM field length</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="ad6b69d8f2b1efd81aec3e896bea39637"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad6b69d8f2b1efd81aec3e896bea39637">&#9670;&nbsp;</a></span>smtc_modem_set_dm_info_interval()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_set_dm_info_interval </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="smtc__modem__api_8h.html#aa74bbc8e8b31da7f77a9a9940f98d331">smtc_modem_dm_info_interval_format_t</a>&#160;</td>
          <td class="paramname"><em>format</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>interval</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the interval between 2 DM info field messages. </p>
<dl class="section remark"><dt>Remarks</dt><dd>A value set to 0 disables the feature - no matter the format.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">format</td><td>The reporting interval format </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">interval</td><td>The interval in unit defined in format</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a6ccd60fd244e31e959362c558a6c714f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6ccd60fd244e31e959362c558a6c714f">&#9670;&nbsp;</a></span>smtc_modem_set_dm_user_data()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_set_dm_user_data </td>
          <td>(</td>
          <td class="paramtype">const uint8_t&#160;</td>
          <td class="paramname"><em>user_data</em>[SMTC_MODEM_DM_USER_DATA_LENGTH]</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set user-specific data to be reported by Device Management frames. </p>
<dl class="section remark"><dt>Remarks</dt><dd>This field will be sent only if it is selected in <a class="el" href="smtc__modem__api_8h.html#ab4837763ecc339a0a6a836040b6463a8">smtc_modem_set_dm_info_fields</a> or <a class="el" href="smtc__modem__api_8h.html#a499ee784cdf5f63b1b8588db0123200d">smtc_modem_request_single_dm_uplink</a></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">user_data</td><td>User-specific data</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a635b5042ee577962c6c2cf4e0f34c351"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a635b5042ee577962c6c2cf4e0f34c351">&#9670;&nbsp;</a></span>smtc_modem_set_joineui()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_set_joineui </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const uint8_t&#160;</td>
          <td class="paramname"><em>joineui</em>[SMTC_MODEM_EUI_LENGTH]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the JoinEUI. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">joineui</td><td>The JoinEUI to be configured</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="aac6c96fdd3ba1a05abb87ca494385b34"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aac6c96fdd3ba1a05abb87ca494385b34">&#9670;&nbsp;</a></span>smtc_modem_set_lbt_configuration()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_set_lbt_configuration </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>listen_duration_ms</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int16_t&#160;</td>
          <td class="paramname"><em>threshold_dbm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>bw_hz</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configure the LBT feature (Listen Before Talk) </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">listen_duration_ms</td><td>The listen duration in ms to be configured </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">threshold_dbm</td><td>The lbt threshold in dbm to be configured </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">bw_hz</td><td>The lbt bandwith in hertz to be configured</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="afdd446b317f4bc7252f5405fc519814d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afdd446b317f4bc7252f5405fc519814d">&#9670;&nbsp;</a></span>smtc_modem_set_nb_trans()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_set_nb_trans </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>nb_trans</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the number of transmissions (nb_trans) in case of unconfirmed uplink. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">nb_trans</td><td>The number of transmissions ( 0 &lt; value &lt; 16 )</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a912c0d5c39113b5ac880e460ed178bfb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a912c0d5c39113b5ac880e460ed178bfb">&#9670;&nbsp;</a></span>smtc_modem_set_network_type()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_set_network_type </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>network_type</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configure network type to private or public. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">network_type</td><td>The configuration to be applied (true: public network / false: private network)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a00e9f3e76d73988e81856a2840a91083"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a00e9f3e76d73988e81856a2840a91083">&#9670;&nbsp;</a></span>smtc_modem_set_nwkkey()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_set_nwkkey </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const uint8_t&#160;</td>
          <td class="paramname"><em>nwkkey</em>[SMTC_MODEM_KEY_LENGTH]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the Network Key (aka Application Key in LoRaWAN v1.0.x) </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">nwkkey</td><td>The key to be configured</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a22722cc73fed77fdafa2a187f54c34d7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a22722cc73fed77fdafa2a187f54c34d7">&#9670;&nbsp;</a></span>smtc_modem_set_region()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_set_region </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="smtc__modem__api_8h.html#af86dcb15a5363575e5eeb3db1f14d6ff">smtc_modem_region_t</a>&#160;</td>
          <td class="paramname"><em>region</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the LoRaWAN region. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">region</td><td>The LoRaWAN region to be configured</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="aaf1c41c973502266d8fbd0eecfcb679f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf1c41c973502266d8fbd0eecfcb679f">&#9670;&nbsp;</a></span>smtc_modem_set_rx_power_offset_db()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_set_rx_power_offset_db </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int16_t&#160;</td>
          <td class="paramname"><em>rx_offset_db</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the Rx power offset in dB. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">rx_offset_db</td><td>The Rx power offset in dB</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a43db9685011f1893130e62576b938c3d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a43db9685011f1893130e62576b938c3d">&#9670;&nbsp;</a></span>smtc_modem_set_stream_redundancy_ratio()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_set_stream_redundancy_ratio </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>redundancy_ratio_percent</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the stream redundancy ratio. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">redundancy_ratio_percent</td><td>The stream redundancy ratio. Accepted value [0; 110%]</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="aeba63e8f8885e25aaef349f5e3a3d243"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeba63e8f8885e25aaef349f5e3a3d243">&#9670;&nbsp;</a></span>smtc_modem_set_tx_power_offset_db()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_set_tx_power_offset_db </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8_t&#160;</td>
          <td class="paramname"><em>tx_pwr_offset_db</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the Tx power offset in dB. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">tx_pwr_offset_db</td><td>The Tx power offset in dB</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="aa19bd57ec5f517d8b190eaf2053a6c55"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa19bd57ec5f517d8b190eaf2053a6c55">&#9670;&nbsp;</a></span>smtc_modem_start_alarm_timer()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_start_alarm_timer </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>alarm_timer_in_s</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set and start the alarm timer. </p>
<dl class="section remark"><dt>Remarks</dt><dd>When the timer expires, an alarm event is generated</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">alarm_timer_in_s</td><td>The alarm timer in second</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="abe170e1b36143016e60c8c5c834628ed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abe170e1b36143016e60c8c5c834628ed">&#9670;&nbsp;</a></span>smtc_modem_start_lbt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_start_lbt </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Start LBT feature (Listen Before Talk) </p>
<dl class="section remark"><dt>Remarks</dt><dd>The configuration function smtc_modem_set_lbt_config must be called before starting the LBT feature</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a45eb99ffebded3d7ba24fb6a69aa38d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a45eb99ffebded3d7ba24fb6a69aa38d2">&#9670;&nbsp;</a></span>smtc_modem_stop_lbt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_stop_lbt </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Stop LBT feature (Listen Before Talk) </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a62ee39bc0e8d159eaa2d87dd4e676d16"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a62ee39bc0e8d159eaa2d87dd4e676d16">&#9670;&nbsp;</a></span>smtc_modem_stream_add_data()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_stream_add_data </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>fport</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const uint8_t *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Add data to the stream. </p>
<dl class="section remark"><dt>Remarks</dt><dd>If no stream has been initialized, open a new unencrypted stream on the FPort given as parameter</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">fport</td><td>The FPort on which the stream is sent </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">data</td><td>The data to be added to the stream </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">len</td><td>The number of bytes from data to be added to the stream</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a7fecd2b206437cdc9d105750541a078d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7fecd2b206437cdc9d105750541a078d">&#9670;&nbsp;</a></span>smtc_modem_stream_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_stream_init </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>fport</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="smtc__modem__api_8h.html#a4bbaabd919974271b85baf6285250c9f">smtc_modem_stream_cipher_mode_t</a>&#160;</td>
          <td class="paramname"><em>cipher_mode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create and initialize a data stream. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">fport</td><td>The FPort on which the stream is sent </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">cipher_mode</td><td>The cipher mode</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a7f5e369b410828fbea0c847bdb8ab7ef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7f5e369b410828fbea0c847bdb8ab7ef">&#9670;&nbsp;</a></span>smtc_modem_stream_status()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_stream_status </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>stack_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>fport</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t *&#160;</td>
          <td class="paramname"><em>pending</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t *&#160;</td>
          <td class="paramname"><em>free</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return the current stream status. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stack_id</td><td>The stack identifier </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">fport</td><td>The FPort on which the stream is sent </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">pending</td><td>The length of pending data for transmission </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">free</td><td>The length of free space in the buffer</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a89e6a844fdcb49540504d41d8c803c5c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a89e6a844fdcb49540504d41d8c803c5c">&#9670;&nbsp;</a></span>smtc_modem_suspend_radio_access()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_suspend_radio_access </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Prevent the stack from accessing the radio. </p>
<dl class="section remark"><dt>Remarks</dt><dd>The user must call this function before performing operations requiring a direct access to the radio (e.g. test modes). Otherwise, undefined behavior may occurs.</dd></dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
<a id="a64f3a9b7a5579a63379eb4fb8b6864b8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a64f3a9b7a5579a63379eb4fb8b6864b8">&#9670;&nbsp;</a></span>smtc_modem_suspend_radio_communications()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> smtc_modem_suspend_radio_communications </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>suspend</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Suspend the radio communications initiated by the modem. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">suspend</td><td>The configuration to be applied (true: suspend communications / false: resume communications)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Modem return code as defined in <a class="el" href="smtc__modem__api_8h.html#a952d295e178005c052f035b4099ada4a">smtc_modem_return_code_t</a> </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
